> ## Documentation Index
> Fetch the complete documentation index at: https://learn.nexudus.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 📆Delete resource booking

> Deletes a boking based on the booking unique Id and the marketplace which made it.

# 📆Delete resource booking

Deletes a boking based on the booking unique Id and the marketplace which made it.

## Authentication

<Note>
  This endpoint requires OAuth2 authentication. Include a valid bearer token in the `Authorization` header.
</Note>

## Request Body

<ParamField body="booking_id" type="string" required>
  The id of the booking to delete.
</ParamField>

<ParamField body="marketplace_id" type="string" required>
  The id of the marketplace performing this action
</ParamField>

## Response

### 200

<ResponseField name="Status" type="integer">
  Example: `200`
</ResponseField>

<ResponseField name="Message" type="string">
  Example: `Booking "Example" was successfully deleted.`
</ResponseField>

<ResponseField name="Value" type="object" />

<ResponseField name="RedirectURL" type="any" />

<ResponseField name="UpdatedOn" type="string">
  Example: `2021-04-15T12:19:07Z`
</ResponseField>

<ResponseField name="UpdatedBy" type="string">
  Example: `john@example.com`
</ResponseField>

<ResponseField name="Errors" type="any" />

<ResponseField name="WasSuccessful" type="boolean">
  Example: `true`
</ResponseField>

```json Example Response theme={null}
{
  "Status": 200,
  "Message": "Booking \"Example\" was successfully deleted.",
  "Value": {
    "Id": 10605
  },
  "RedirectURL": null,
  "UpdatedOn": "2021-04-15T12:19:07Z",
  "UpdatedBy": "john@example.com",
  "Errors": null,
  "WasSuccessful": true
}
```

## Example Request

```bash theme={null}
curl -X DELETE \
  "https://spaces.nexudus.com/api/apps/marketplaceapplications/book" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
```
