Payload CMS icon

Payload CMS

Interact with Payload CMS collections and globals

Collection → Delete by ID

AI-generated

Summary

Delete a document by its ID from a specified collection

Inputs

  • collection (required) — Choose the collection to operate on
  • documentId (required) — The ID of the document to operate on
  • additionalOptions — Additional options such as query parameters, depth, limit, page, sort, where, select, locale, upload, and custom query parameters

Output shape

a single API response object

The response may be empty on success; errors are returned as n8n operation errors.

Examples

Example 1: Delete a document with ID 123 from the posts collection

collection = posts, documentId = 123

Example 2: Remove a user document from the users collection

collection = users, documentId =

Links

Discussion