POST

Remove Item


Remove an item from a collection

Body Params
collectionNamestring

The collection or table to delete from.

Response Object
Returns an empty object.
Delete an item from a collection.
Request
cURL
curl --X POST 'https://mysql-adapter.com/data/remove' \ --header 'Content-Type: application/json' \ --data-raw '{ "requestContext": { "settings": { "secretKey": "mySecureSecret" }, "instanceId": "12a345b6-7890-98d7-65e4-f321abc1de23", "installationId": "987fe654-3d21-4def-ab5c-6d78e90f123a", "memberId": "77aa88bb-2c2c-d3d3-4e4e-ff55aa66bb77", "role": "OWNER" "collectionName": "car", "itemId": "12345678-abcd-9876-fedc-a9876543210" }'
Response
JSON
{ "item": { "_id": "12345678-abcd-9876-fedc-a9876543210", "_owner": "77aa88bb-2c2c-d3d3-4e4e-ff55aa66bb77", "make": "BMW", "model": "i8", "year": 2020, "date_added": { "$date": "2020-01-01T21:00:00.000Z" } } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?