# Selectively delete by given list of ids

**DELETE** `https://api.zoined.com/data/sales/id?ids=12345&sourceSystem=myPos`
This endpoint allows deleting existing transaction data by giving a list of transaction or entity id values already existing in the warehouse. Entity name for selective deletion is one of the end point names in lower case and singular form eg. sales, salespayment, salesorder, organisation, product etc.

Endpoint: DELETE /data/{entity}/id
Security: bearerAuth

## Security:

  - `bearerAuth` (unknown)
    http bearer token

## Path parameters:

  - `entity` (string, required)
    Entity name to for this delete operation.

## Query parameters:

  - `ids` (string, required)
    id values to identify transactions to be removed can be repeated for multiple values.

  - `sourceSystem` (string)
    Optional source system value to limit delete operation to.

## Response 204:

  - `204` (unknown)
    Data for the provided id values has been removed from warehouse.

## Response 400:

  - `400` (unknown)
    Invalid request (eg. unknown entity parameter).
**Headers**
- `Content-Type: application/json`

## Response 400 fields (application/json):

  - `status` (string, required)
    Status of the operation OK / Not OK
    Example: Not OK

  - `msg` (string, required)
    Message describing result of operation
    Example: Reason for error

## Response 401:

  - `401` (unknown)
    Missing or invalid authorization token in header
**Headers**
- `Content-Type: application/json`

## Response 401 fields (application/json):

  - `status` (string, required)
    Status of the operation OK / Not OK
    Example: Not OK

  - `msg` (string, required)
    Message describing result of operation
    Example: Unauthorized

## Response 500:

  - `500` (unknown)
    Internal error or exception
**Headers**
- `Content-Type: application/json`

## Response 500 fields (application/json):

  - `status` (string, required)
    Status of the operation OK / Not OK
    Example: Not OK

  - `msg` (string, required)
    Message describing result of operation
    Example: Reason for error

## Response 400 examples:

  - `response` (unknown)

## Response 401 examples:

  - `response` (unknown)

## Response 500 examples:

  - `response` (unknown)

