Deleting an approval workflow from a list
-
Thursday, September 13, 2012 4:59 PM
I recently deleted a workflow from a list. However, the workflow column is still on the list. I can remove it from the view, but I want to delete the workflow completely because I do not want it sending out emails anymore.
When I removed the workflow, I went to List Settings > Workflow settings > Remove workflow completely.
However, the workflow coulmn is still there. How can I delete that column from the list?
Thanks in advance
All Replies
-
Thursday, September 13, 2012 5:40 PMThe column is created when you add the workflow to the list. Because of this the column is a list column and not a site column. After you remove the workflow from the list you will want to remove the list column by editing the list via the list settings page and then modifying the list columns. After that if it still appears on some of the views you can remove it from there too.
- Proposed As Answer by Kyle Davis MCITP, MCPD Thursday, September 13, 2012 5:40 PM
- Edited by Kyle Davis MCITP, MCPD Thursday, September 13, 2012 5:41 PM
- Unproposed As Answer by Miketc90 Thursday, September 13, 2012 7:25 PM
-
Thursday, September 13, 2012 5:44 PM
Hi Kyle, thaks for the quick reply.
The Approval column is not listed under the list settings, so I cannot delete it.
-
Friday, September 14, 2012 2:45 AMModerator
Hi Miketc,
I have a test on my local server, once I remove the workflow then the workflow column deleted at the same time. You can delete the unused column through the following two parts powershell.
function Delete-WorkflowColumn ($webURL, $listName, $columnName) { #Setup variables from the user input $web = Get-SPWeb $webURL $list = $web.Lists[$listName] $column = $list.Fields[$columnName] #Make sure the column is not hidden or read only $column.Hidden = $false $column.ReadOnlyField = $false $column.Update() #Delete column and dispose of the web object $list.Fields.Delete($column) write-host “Deleted column” $web.Dispose() }
Delete-WorkflowColumn -webURL http://portal -listName “Documents” -columnName “Approval Workflow (workflowversion)”
More information:
Delete unused workflow status columns in SharePoint list views using PowerShell,
Delete Orphaned Workflow Status Columns from SharePoint List Views,
Regards,
Kelly Chen
- Proposed As Answer by Steven AndrewsEditor Friday, September 14, 2012 3:46 PM
-
Friday, September 14, 2012 12:56 PM
Hi Yaoyao,
I do not have access to the powershell, so I cannot delete the column that way.
Thank you though
-
Monday, September 17, 2012 1:34 AMModerator
Hi Miketc90,
Did you have access to Visual Studio 2010? If yes, did you check the second method that I have posted?
Regards,
Kelly Chen
-
Friday, September 28, 2012 10:14 AMModerator
Hi Miketc90,
It seems that you are in SharePoint client side, and cannot operate on the server, the following thread provide a JavaScript code snippet to remove the workflow column in list view, please refer to it for more information:
http://social.technet.microsoft.com/Forums/en-US/sharepoint2010customization/thread/613a9a71-7a8e-4769-9fe6-cbb65ac06b4a/Code snippet provided by Yaoyao Chen is for dealing with this on the server side.
Thanks,
Qiao Wei
TechNet Community Support

