/v1/communities/{community_id}/collections/{collection_id}AuthDelete a collection (owner only). Items cascade; the posts themselves are untouched.
Path parameters
community_id*stringSocial community UUID.
collection_id*string · uuidId of the collection.
Query parameters
actor_idstring · uuidThe acting actor; must be the collection owner. Required unless the request sends the deprecated JSON body `{ caller_actor_id }`.
Request body
caller_actor_idstring · uuidDeprecated: pass `?actor_id=` instead. The caller, who must be the owner.
Example: "aaaaaaaa-0000-0000-0000-000000000001"
Response · 204
Deleted.
Example
Request
DELETE https://social.productcraft.co/v1/communities/{community_id}/collections/{collection_id}
Authorization: Bearer YOUR_TOKEN
Content-Type: application/json
{
"caller_actor_id": "aaaaaaaa-0000-0000-0000-000000000001"
}import { Social } from "@productcraft/social";
// Reads PRODUCTCRAFT_API_KEY from the environment
const social = new Social();
await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").collections.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { caller_actor_id: "aaaaaaaa-0000-0000-0000-000000000001" });social.community(…).collections.delete(collectionId, params?, options?): void