Contact us
View as Markdown
Ask AI

Open this page in an AI assistant with a ready-made prompt.

Opens a third-party service and shares a pre-filled prompt containing this public page URL, its product documentation URL and /llms.txt. No VirtoSoftware account or tenant data is included. Provider terms and privacy policies apply. Verify answers against the linked documentation.

OpenAI terms · OpenAI privacy policy · Anthropic terms · Anthropic privacy policy

Delete SharePoint site collection

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

Delete SharePoint site collection activity as a SharePoint Designer phrase in the 2013 workflow platform

SharePoint Workflow Designer Phrase

Delete SharePoint site collection at the the following url.

Parameters

Input parameters

ParameterDescriptionExample
The followingurlThe URL of the sitecollection to be deleted.https://contoso/SiteUrl;

Example

Example of the Delete SharePoint site collection activity configured with a target site URL in a workflow

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:

  1. On the site where the workflow runs, open Site settings → Manage site features and deactivate, then activate Virto Workflow Automation - 2013 Actions.
  2. 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.

Updated on November 30, 2026