DELETE
/
db
/
delete
JavaScript
import Worqhat from 'worqhat';

const client = new Worqhat({
  apiKey: 'My API Key',
});

const response = await client.db.deleteRecords({ table: 'users', where: { id: '123' } });

console.log(response.count);
{
  "success": true,
  "data": [
    {}
  ],
  "count": 123,
  "message": "Data deleted successfully"
}

Authorizations

Authorization
string
header
required

API key authentication. Format - "Bearer YOUR_API_KEY"

Body

application/json

Response

200
application/json

Data deleted successfully

The response is of type object.