# Delete units

Delete one or more existing units

Endpoint: DELETE /rooms-api/units
Version: 1.3

## Header parameters:

  - `Content-Type` (string, required)
    Specifies the expected content type. Currently supports `application/json`.

  - `Accept-Version` (string)
    Specify the version number to get the API functionality specific to that version. Currently supports the value: 1.0

## Request fields (application/json):

  - `units` (array, required)
    List of units to delete. All units must belong to the same property. Maximum 100 units per request.

  - `units.property_id` (integer, required)
    Property ID the unit belongs to. All units in a single request must belong to the same property.

  - `units.unit_id` (integer, required)
    Id of the unit to delete

## Request examples:

  - `DELETE_UNITS` (unknown)
    Delete multiple units from a property

## Response 200:

  - `200` (unknown)
    Units deleted successfully

## Response 200 fields (application/json):

  - `data` (null)

  - `warnings` (array)

  - `warnings.message` (string)

  - `warnings.code` (integer)

  - `warnings.details` (object)

  - `warnings.details.fields` (array)

  - `warnings.description` (string)

  - `errors` (array)

  - `meta` (object)

  - `meta.ruid` (string)

## Response 400:

  - `400` (unknown)
    Delete error

## Response 400 fields (application/json):

  - `data` (null)

  - `warnings` (array)

  - `warnings.message` (string)

  - `warnings.code` (integer)

  - `warnings.details` (object)

  - `warnings.details.fields` (array)

  - `warnings.description` (string)

  - `errors` (array)

  - `meta` (object)

  - `meta.ruid` (string)

## Response 500 fields (application/json):

  - `data` (null)

  - `warnings` (array)

  - `warnings.message` (string)

  - `warnings.code` (integer)

  - `warnings.details` (object)

  - `warnings.details.fields` (array)

  - `warnings.description` (string)

  - `errors` (array)

  - `meta` (object)

  - `meta.ruid` (string)

## Response 200 examples:

  - `SUCCESS` (unknown)
    Successful deletion of multiple units

## Response 400 examples:

  - `ERROR` (unknown)
    Errors deleting multiple units

## Response 500 examples:

  - `SYSTEM_ERROR` (unknown)

