Skip to content

Delete Record

One of the operation of DATA-API is to delete an entity.

In order to delete a specific entity, a DELETE request to /api/:entity_name/:id is sent.

// e.g: NodeJS example
fetch('https://april9.stack9.co/api/customer/1', {
  method: 'DELETE',
  headers: {
    'Api-Key': '<my_secret_api_key>',
    'Content-Type': 'application/json',
  },
});
Status CodeOperation
204Resource Deleted successfully