Delete a community
const url = 'https://feed.work.optidata.cloud/api/categories/864';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://feed.work.optidata.cloud/api/categories/864 \ --header 'Authorization: Bearer <token>'Moves a community to the trash. Allowed to administrators and, on a private community, to people with the manage permission; group-linked communities cannot be deleted here.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”Numeric id of the community.
Responses
Section titled “ Responses ”The trashed community.
A community (shared space) for posts.
object
Hex colour, or null.
public — everyone in the company; private — only the people and groups it is shared with.
Set when the community mirrors an Optiwork group; such communities are managed through the group, not here.
Present when the community is returned as a pinned community.
object
Examples
{ "id": 864, "cuid": "7f3c2a10-5b8e-4d21-9c6a-0e4f1b2d3c4a", "name": "Announcements", "slug": "announcements", "description": "Company-wide announcements.", "created_at": "2026-09-02T12:10:14.000000Z", "updated_at": "2026-09-02T12:10:14.000000Z", "deleted_at": "2026-10-19T14:42:01.000000Z", "emoji": "📣", "cover_url": null, "color": "#863bff", "visibility": "public", "group_id": null}No authentication key was sent.
Authentication failures use an error key.
object
Examples
{ "error": "JWT passport exception: Missing bearer token in request"}The caller is not allowed to perform this action.
object
Examples
{ "message": "This action is unauthorized."}No matching resource, or it is not reachable through this path.
object
Examples
{ "message": "No query results for model [App\\Models\\Category] 864"}The authentication key is expired or not recognised. Get a fresh one and retry.
Authentication failures use an error key.
object
Examples
{ "error": "JWT passport expired: Passport expired"}