# Delete a functional area

Removes the group. The record is retained internally so past reporting is not lost,
but the group can no longer be read or edited and no endpoint restores it.
**A group that still has roles recruiting under it cannot be deleted** - remove or
reassign its roles first. The same applies to the account's built-in default group,
which is not removable at all.
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/functionalarea/{id}
Version: 2.0.0
Security: default

## Path parameters:

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

## Header parameters:

  - `Rosterfy-Platform` (string)

## Response 200 fields (application/json):

  - `messages` (string | null)

