Skip to main content
DELETE
Available in🇮🇳 India🇺🇸 United States
Use this endpoint to delete an item.

Path Parameters

string
required
The unique identifier of the item that must be deleted.

Errors

Code: 4xxThe API key or secret are not entered or an invalid API key is used.Solution: Use and enter the correct API details while executing the API.
Code: 400The invoice id entered is either invalid or does not belong to the requester account.Solution: Enter a valid invoice id.
Code: 400The item id passed belongs to a non-invoice item type (for example, payment_page). Only items of type invoice can be deleted through this endpoint.Solution: Confirm the item’s type using the Fetch Item API. Only invoice-type items support deletion via DELETE /v1/items/:id.
Code: 400The item has already been associated with one or more invoices. Razorpay does not allow deleting items that have a history of use, to preserve invoice integrity.Solution: Mark the item as inactive instead by calling PATCH /v1/items/:id with active: false. Inactive items remain available on past invoices but cannot be used on new ones.