Skip to Content
Pindown.ai is in early alpha - features may change
Pins APIBatch Delete Pins

Batch Delete Pins

Delete multiple pins in a single request. This is more efficient than making individual DELETE requests.

Endpoint

DELETE /v1/pins/batch

Authentication

Requires API key with pins:write scope. You must be the owner of each pin.

Authorization: Bearer pk_live_your_api_key

Request Body

FieldTypeRequiredDescription
pin_idsstring[]YesArray of pin IDs to delete (max 50)

Example

import { PindownClient } from '@pindownai/client-js' const client = new PindownClient({ apiKey: process.env.PINDOWN_API_KEY }) const result = await client.pins.batchDelete([ 'p-abc123', 'p-xyz789', 'p-def456' ]) console.log(`Deleted: ${result.deleted.length}`) console.log(`Failed: ${result.failed.length}`)

Response

{ "success": true, "data": { "deleted": ["p-abc123", "p-xyz789"], "failed": [ { "id": "p-def456", "error": "Permission denied" } ] }, "message": "Deleted 2 pins" }

Response Fields

  • deleted: Array of pin IDs that were successfully deleted
  • failed: Array of pins that failed to delete with error messages

Notes

  • Maximum 50 pins per batch request
  • Each pin is processed independently - if one fails, others still succeed
  • You must be the owner of each pin to delete it (editors cannot delete)
  • Deleting a pin also removes it from all pinboards and pages
  • This operation is irreversible

Next Steps