Deleting a site¶
You can delete a site.
Method and URI¶
To delete a site with {siteId}
, use the DELETE method with a URI:
DELETE https://{hostname|IPv4}/api/site/{siteId}
Tip
To get a {siteId}
value based on its name, follow the instructions in Getting a {siteId}.
Parameters¶
None.
Data¶
None.
Example: Delete a site¶
Assume that you have a site, Singapore, and you want to delete it. You get the {siteId}
: 3101.
A Python snippet that is similar to the following example can be used to delete the site:
site_id = "3101" # Singapore
requests.delete('https://' + spp_ipv4 + '/api/site/' + site_id,
headers={...}, verify=...)
After you run the Python snippet, ensure that you get a response with the HTTP status of 204 (No Content) and that you no longer see the site Singapore.