Delete a site

You can use the deleteSite endpoint to delete an existing site.

This section applies to both OSF and Storefront Classic. This section applies to Open Storefront Framework (OSF) and Storefront Classic.

For example:

DELETE /ccadmin/v1/sites/100002  HTTP/1.1
Authorization: Bearer <access_token>

If the site is deleted successfully, a 200-level HTTP status code is returned.

Note that you cannot delete the default site. If you want to delete the site that is currently the default, first make a different site the default.