SharePoint Provider::DeleteSite
The DeleteSite method removes a Microsoft SharePoint site collection from the specified server of the type create with CreateSite above.
Arguments
Input Arguments | Required | Description |
---|---|---|
<target> |
Yes |
The URL of the Windows SharePoint Services administration site |
<site> |
Yes |
The absolute URL of the site to be deleted. This is the URL that a user would enter to access the site-- for example,https://localhost/sites/sp, or https://bucky:90/sites/sp |
Note
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.
Remarks
No remarks
Sample Code
Example XML Request
<request>
<procedure>
<execute namespace="SharePoint2007Provider" procedure="DeleteSite"
impersonate="1">
<executeData>
<target>https://raven003:8080</target>
<site>https://raven003/sites/test</site>
</executeData>
</execute>
</procedure>
</request>
Example XML Response
No example XML response
Applies To
Windows SharePoint Services Provider API for
Hosted Messaging and Collaboration version 3.5
Hosted Messaging and Collaboration version 3.0
Windows-based Hosting version 4.5
Windows-based Hosting version 4.0
Windows-based Hosting version 3.5
Windows-based Hosting for Applications version 1.0
See also
Tasks
SharePoint Provider::CreateSite
SharePoint Provider::GetSite