SharePoint2007Provider::DeleteSite

This procedure deletes the specified site collection from the specified server.

Arguments

Input Arguments Required Description

<target>

Yes

The URL of the Windows SharePoint Services administration site.

<siteGUID>

Yes

The globally unique identifier (GUID) of the site collection.

Remarks

The caller must be a member of the local administrators group, or the group that is designated as the SharePoint Administrators Group Account.

DeleteSite does not support rollback.

Sample Code

Example XML Request

<request> 
   <procedure> 
      <execute namespace="SharePoint2007Provider" procedure="DeleteSite" impersonate="1"> 
         <executeData> 
            <target>https://WSSFE:8080</target> 
            <siteGUID>7c1d4ef1-dfdc-4cb3-b057-aa2586813f2f</siteGUID> 
         </executeData> 
      </execute> 
   </procedure> 
</request>

Applies To

SharePoint 2007 Provider for:

  • Hosted Messaging and Collaboration version 4.5

  • Hosted Messaging and Collaboration version 4.0

See also

Tasks

SharePoint2007Provider::CreateSite