# Delete a site

Deletes a site, including its pages, settings, media files, data sources, presentation elements, dictionaries, components, variants, and page designs. Everyone in the environment will lose access to the deleted site.
           Deleting a site affects related websites in the collection:
           • If the site shares items with other sites, this might result in broken links.
           • Items that are cloned to other sites are turned into regular items, and the links removed.

Endpoint: DELETE /api/v1/sites/{siteId}
Version: v1
Security: Bearer

## Path parameters:

  - `siteId` (string, required)
    The identifier of the site.
    Example: "497f6eca-6276-4993-bfeb-53cbbbba6f08"

## Query parameters:

  - `force` (boolean)
    If this is set to true, the site will be deleted even if it is published to Edge.

  - `environmentId` (string)
    The identifier of the environment
    Example: "main"

## Response 200 fields (application/json):

  - `handle` (string,null)

## Response 400 fields (application/json):

  - `type` (string,null)
    The type of the error response entity.

  - `title` (string,null)
    The title of the error response entity.

  - `status` (integer,null)
    The response status code.

  - `detail` (string,null)
    A detailed explanation, specific to this occurrence of the problem.

  - `instance` (string,null)
    If available, a URI reference that identifies the specific occurrence of the problem.

## Response 404 fields (application/json):

  - `type` (string,null)
    The type of the error response entity.

  - `title` (string,null)
    The title of the error response entity.

  - `status` (integer,null)
    The response status code.

  - `detail` (string,null)
    A detailed explanation, specific to this occurrence of the problem.

  - `instance` (string,null)
    If available, a URI reference that identifies the specific occurrence of the problem.


