Skip to content

Delete Sites

Delete the specified site(s).

Verb DELETE
Endpoint {base-url}/sites
Max Page Size N/A

Request Body

{
  "requestFilter": {
    "siteIds": [153]
  }
}

Filters Honored

Note

All changes in this request are atomic. If any item fails, the entire batch is rolled back and no changes are made.

Returns

On Success

A 204 No Content.

On Error

Every filter axis you send is validated. siteIds, accountIds, and organizationIds must each reference records that exist and that belong to an organization you have access to; otherwise the whole request is rejected and no sites are deleted.

HTTP Code Error Code Definition
403 DATA_ACCESS_VIOLATION One or more of the siteIds, accountIds, or organizationIds you filtered by belong to an organization you do not have access to.
404 MISSING_RECORD One or more of the siteIds, accountIds, or organizationIds you filtered by do not exist.