4.2 DeleteSite
The following example demonstrates the protocol client requests and protocol server responses from the Administration Web Service Protocol to delete the site collection.
The protocol client sends a DeleteSite request to delete the site collection.
-
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <DeleteSite xmlns="http://schemas.microsoft.com/sharepoint/soap/"> <Url>http://server/sites/examplesite</Url> </DeleteSite> </soap:Body> </soap:Envelope>
The protocol server deletes the site collection and responds as follows:
-
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <DeleteSiteResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/" /> </soap:Body> </soap:Envelope>