Delete List Records

Records can be deleted using unlink(), it takes a list of records to delete.

DELETE /restapi/1.0/object/{object_name}?ids={comma_separated_ids}

Request:

DELETE /restapi/1.0/object/res.partner?ids=17,20 HTTP/1.1
Host: {your_Odoo_server_url}

JSON Response:

HTTP/1.1 200 OK

{}

XML Response:

HTTP/1.1 200 OK

<ids type="str">17,20</ids>
Headers and Status Codes
Description

Request Headers

  • Accept – the response content type depends on Accept header

  • Authorization – The OAuth protocol parameters to authenticate.

Response Headers

  • Content-Type – this depends on Accept header of the request

Status Codes

Last updated