Batch Remove Pins from Pinboard
Remove multiple pins from a pinboard in a single request. This is more efficient than making individual DELETE requests.
Endpoint
DELETE /v1/pinboards/:pinboardId/pins/batchAuthentication
Requires API key with pinboards:write scope. You must be the owner or editor of the pinboard.
Authorization: Bearer pk_live_your_api_keyPath Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
pinboardId | string | Yes | Pinboard ID (e.g., pb-abc123) |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
pin_ids | string[] | Yes | Array of pin IDs to remove (max 50) |
Example
Client-JS
import { PindownClient } from '@pindownai/client-js'
const client = new PindownClient({
apiKey: process.env.PINDOWN_API_KEY
})
const result = await client.pinboards.batchRemovePins('pb-abc123', [
'p-pin1',
'p-pin2',
'p-pin3'
])
console.log(`Removed: ${result.removed.length}`)
console.log(`Failed: ${result.failed.length}`)Response
{
"success": true,
"data": {
"removed": ["p-pin1", "p-pin2"],
"failed": [
{
"id": "p-pin3",
"error": "Pin not found on pinboard"
}
]
},
"message": "Removed 2 pins"
}Response Fields
removed: Array of pin IDs that were successfully removedfailed: Array of pins that failed to remove with error messages
Notes
- Maximum 50 pins per batch request
- Each pin is processed independently - if one fails, others still succeed
- Removing a pin from a pinboard does not delete the pin itself
- Pins are also removed from the pinboard’s layout if they were positioned
Next Steps
- Batch Add Pins - Add multiple pins to a pinboard
- Remove Pin - Remove a single pin from a pinboard