Remove a comment from a work item. On success the response is 204 No Content with an empty body — there is nothing to parse, so branch on the status code.
The delete is a soft delete: the comment stops appearing in every read, including lists and its own detail route, and a follow-up GET on the same id returns 404 not_found.
Deleting a comment is not reversible through the API
There is no restore endpoint, so confirm with the user before deleting. Deleting the parent work item is the usual alternative when you want the whole thread to disappear at once.
Comma-separated list of fields to return. Unrequested keys are omitted from the response, not returned as null, so absent means "not requested" and null means "actually null". id always comes back whether or not you name it.
Pass all for every requestable field. An unknown name is a 400 that lists the valid set and suggests the closest match, so a typo can't silently cost you the saving.
Comma-separated relations to embed alongside the ids: actor (the comment author).
Expansion is separate-key: ?expand=state keeps state_id and adds a state object next to it, so an id is never replaced by an object. An unknown value is a 400.
?fields= and ?expand= are independent namespaces. Relation names are not valid ?fields= tokens (and vice versa), and an expanded object survives field filtering — ?fields=id,name&expand=state returns id, name and state. See Expanding relations.
Delete a comment
Remove a comment from a work item. On success the response is
204 No Contentwith an empty body — there is nothing to parse, so branch on the status code.The delete is a soft delete: the comment stops appearing in every read, including lists and its own detail route, and a follow-up
GETon the same id returns404 not_found.Deleting a comment is not reversible through the API
There is no restore endpoint, so confirm with the user before deleting. Deleting the parent work item is the usual alternative when you want the whole thread to disappear at once.
Path Parameters
slug:requiredstringThe workspace slug. It appears in your Plane URLs — in
https://app.plane.so/my-team/projects/, the slug ismy-team.project_id:requiredstring (uuid)The project the work item belongs to.
work_item_id:requiredstring (uuid)The work item the comment is attached to.
pk:requiredstring (uuid)The comment to delete.
Response shaping
fields:optionalstringComma-separated list of fields to return. Unrequested keys are omitted from the response, not returned as
null, so absent means "not requested" andnullmeans "actually null".idalways comes back whether or not you name it.Pass
allfor every requestable field. An unknown name is a400that lists the valid set and suggests the closest match, so a typo can't silently cost you the saving.Requestable here:
access,actor_id,comment_html,comment_stripped,created_at,created_by_id,edited_at,external_id,external_source,id,work_item_id.See Sparse fields.
expand:optionalstringComma-separated relations to embed alongside the ids:
actor(the comment author).Expansion is separate-key:
?expand=statekeepsstate_idand adds astateobject next to it, so an id is never replaced by an object. An unknown value is a400.?fields=and?expand=are independent namespaces. Relation names are not valid?fields=tokens (and vice versa), and an expanded object survives field filtering —?fields=id,name&expand=statereturnsid,nameandstate. See Expanding relations.Scopes
projects.work_items.comments:writeErrors
400invalid_request401unauthorized402payment_required403forbidden404not_found406not_acceptableAcceptheader asks for a representation the API can't produce.409conflict413payload_too_large415unsupported_media_typeContent-Typeisn't one this endpoint accepts.429rate_limitedRetry-Afterheader before retrying.No response body.