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' });
Copy
Ask AI
{ "type": "errors", "errors": [ { "type": "error", "status": "400", "title": "Bad Request", "detail": "The request could not be understood due to malformed syntax or invalid parameters." } ]}
Items
Delete an Item
Permanently deletes an item.
DELETE
/
collections
/
{collection_id}
/
items
/
{id}
JavaScript
Copy
Ask AI
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' });
Copy
Ask AI
{ "type": "errors", "errors": [ { "type": "error", "status": "400", "title": "Bad Request", "detail": "The request could not be understood due to malformed syntax or invalid parameters." } ]}