Skip to content

Solution Automation RemoveSiteAuto

Barbarur edited this page Jul 17, 2024 · 1 revision

Check in files

Solution Code: RemoveSiteAuto

Description

Site collections will be sent to the deleted site list. Subsites will be hard deleted from the Site collection.

Requirements

Run the solution with and account with at least SharePoint Admin role.

Parameters

File with the list of Sites to delete
Parameter Type Definition
File with the list of sites Required A single text file with the list of all sites URLs.

How this Solution works

  1. Collects the Site Urls from the selected file.
  2. Iterates through each URL and perform the required action.
    1. If it is a Site collection, it will be soft deleted and sent to the Deleted site list.
    2. If it is a Subsite, it will be hard deleted from the Site collection.
  3. Records the information for each action in a CSV file.
Clone this wiki locally