Remove a site collection or a site

Version: 10.4

Inevitably, you will need to remove site collections and/or sites from time to time.  In SXA, you can use a script to remove site collections (folders) and sites (folders) including all the media items and template folders that are created during the scaffolding process. Depending on what you want to remove, there are scripts  available to remove tenant folders, tenants, site folders, and sites.

To remove a site collection, site, or folder:

  1. In the Content Editor, right-click the site collection, site, or folder that you want to remove. 

  2. Click Scripts and then, depending on what you want to remove, click Remove Site CollectionRemove SiteRemove Site Collection Folder, or Remove Site Folder.

    For example, to remove the Showcase site collection:

  3. In the Message dialog box, to confirm that you want to remove, for example, the site collection, click OK.

    SXA now runs a script to remove the site collection, site, or folder and all the related templates and media files.

Do you have some feedback for us?

If you have suggestions for improving this article,