Delete SharePoint site collection
This activity completely deletes a top-level site and any subsites of that site on this web application.

SharePoint Workflow Designer Phrase
Delete SharePoint site collection at the the following url.
Parameters
Input parameters
| Parameter | Description | Example |
|---|---|---|
| The followingurl | The URL of the sitecollection to be deleted. | https://contoso/SiteUrl; |
Example

Who can delete a site collection
From version 6.1.14, the action checks the user who started the workflow: only a site collection administrator of the site collection to delete or a farm administrator can delete it. For other users, the action stops with a message that names the user and the site. The site collection of Central Administration is never deleted. The workflow must run in the site collection that it deletes. See Rights of the user who started the workflow.
In a workflow that was published before the update to version 6.1.14, the action stops and deletes nothing. The workflow history shows: “Delete site collection: Refused: the workflow has the action definition from before the update. A farm administrator deactivates and activates the site feature Virto Workflow Automation - 2013 Actions and publishes the workflow again.” To fix it:
- On the site where the workflow runs, open Site settings → Manage site features and deactivate, then activate Virto Workflow Automation - 2013 Actions.
- Publish the workflow again in SharePoint Designer (Publish).
Activating the feature again without publishing the workflow does not help: a published workflow keeps the action definition that it was published with.