delete_product
Permanently remove a product listing and its images. Use when a user requests deletion of their own listing; cannot be undone.
Instructions
Permanently delete a product listing and all its images. Destructive.
Use only when the user explicitly asks to remove a listing they own. Cannot be undone — there is no soft-delete or trash bin. Idempotent: deleting a product that no longer exists returns 404, not an error state on your side.
The API key must own the product.
Args:
api_key: Partle API key (prefix pk_).
product_id: ID of the product to delete. Get from get_my_products.
Returns:
{"deleted": product_id} on success.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | Yes | ||
| product_id | Yes |