Skip to main content
DELETE
/
collections
/
{collection_id}
/
items
/
{id}
JavaScript
import Moonbase from '@moonbaseai/sdk';

const client = new Moonbase({
  apiKey: process.env['MOONBASE_API_KEY'], // This is the default and can be omitted
});

await client.collections.items.delete('id', { collection_id: 'collection_id' });
{
  "type": "errors",
  "errors": [
    {
      "type": "error",
      "status": "400",
      "title": "Bad Request",
      "detail": "The request could not be understood due to malformed syntax or invalid parameters."
    }
  ]
}

Authorizations

Authorization
string
header
required

Your Moonbase API key.

Path Parameters

collection_id
string
required
id
string
required

The ID of the Item to delete.

Response

Deletion succeeded.