---
updatedAt: 2025-09-22T21:26:20.000Z
agentTools:
  projectIndex: https://docs.cupid.travel/llms.txt
---

# Delete a partner inventory

Deletes a specific partner inventory along with all its associated data. This action is cascading—if the inventory has any child inventories, they will also be permanently deleted.

If the deleted inventory was active, the most recent previously active inventory will be automatically reactivated.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Cupid Hotel Mapping API",
    "version": "3.0"
  },
  "security": [
    {
      "apikeyAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://api.cupid.travel"
    }
  ],
  "paths": {
    "/api/partner/{partner_id}/inventory/{partner_inventory_id}": {
      "delete": {
        "tags": [
          "Hotel Mapping"
        ],
        "summary": "Delete a partner inventory",
        "description": "Deletes a specific partner inventory along with all its associated data. This action is cascading—if the inventory has any child inventories, they will also be permanently deleted.\n\nIf the deleted inventory was active, the most recent previously active inventory will be automatically reactivated.",
        "security": [
          {
            "apikeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "partner_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "example": 1012
            },
            "description": "ID of the partner"
          },
          {
            "name": "partner_inventory_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "example": 2507
            },
            "description": "ID of the partner inventory to delete"
          },
          {
            "name": "x-api-key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "API key for authentication"
          }
        ],
        "responses": {
          "204": {
            "description": "Partner inventory deleted successfully"
          },
          "400": {
            "description": "Invalid partner_id or inventory_id"
          },
          "401": {
            "description": "Unauthorized or insufficient access rights"
          },
          "403": {
            "description": "Forbidden to delete this inventory"
          },
          "500": {
            "description": "Internal server error"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```