Skip to main content
DELETE

Delete a warehouse

Scope:inventory:warehouses.write
https://api.holded.com/api/v2/warehouses/{warehouseId}

Permanently deletes a warehouse. You cannot delete a warehouse that still holds stock. Transfer all stock to another warehouse before deleting. You also cannot delete the default warehouse.

Parameters

Path parameters

warehouseIdstringrequired

Warehouse ID (24-char hex ObjectId)

Request

python
import requests

url = "https://api.holded.com/api/v2/warehouses/{warehouseId}"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

response = requests.delete(url, headers=headers)
print(response.json())

Responses

Success responses

204Resource deleted

Error responses

401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
404Warehouse not foundapplication/json
429Rate limit exceededapplication/json