# Delete a location

Removes the location. The record is retained internally so past reporting is not
lost, but the location can no longer be read or edited and no endpoint restores it.
**A location with roles still recruiting at any of its venues cannot be deleted** -
remove or reassign those roles first. The same applies to the account's built-in
default location, which is not removable at all.
**The venues under it are not deleted, but they do become unreachable**: every venue
endpoint resolves a venue through its location, so once the location is gone its
venues stop appearing in venue listings and can no longer be read, updated or
removed. Move or delete the venues first if you need them to stay available.
Returns `200` with a `messages` field rather than an empty `204`. `messages` carries
anything the platform wants to tell you about the deletion and is `null` when there
is nothing to say.

Endpoint: DELETE /api/v2/headcount/location/{id}
Version: 2.0.0
Security: default

## Path parameters:

  - `id` (integer, required)
    The ID of the location.

## Header parameters:

  - `Rosterfy-Platform` (string)

## Response 200 fields (application/json):

  - `messages` (string | null)

