# Delete feed comment

Take the ID from data.comments[].id in GET /v1/posts/comments, not commentId. Only comments the user may delete are removed; Bitrix24 checks permissions.

`DELETE /v1/feed-comments/88`

**Bitrix24:** `log.comment.delete` | **Scope:** `log` | **Auth:** `X-Api-Key`

Deleting a feed entry does not promise deletion of the blog comment or decrementing the post counter. A live probe on an owned post left the counter at 1. To delete the blog comment, use DELETE /v1/posts/:id/comments/:commentId.

## Response fields

`data.deleted`

```json
{
  "success": true,
  "data": {
    "deleted": true
  }
}
```

## Examples

```bash
curl -X DELETE "https://vibecode.bitrix24.com/v1/feed-comments/88" -H "X-Api-Key: vibe_api_DUMMY_personal"
```

```bash
curl -X DELETE "https://vibecode.bitrix24.com/v1/feed-comments/88" -H "X-Api-Key: vibe_app_DUMMY_oauth" -H "Authorization: Bearer DUMMY_SESSION"
```

```javascript
const response = await fetch("https://vibecode.bitrix24.com/v1/feed-comments/88", {
  method: "DELETE", headers: { "X-Api-Key": "vibe_api_DUMMY_personal" }
});
const result = await response.json();
```

```javascript
const response = await fetch("https://vibecode.bitrix24.com/v1/feed-comments/88", {
  method: "DELETE", headers: { "X-Api-Key": "vibe_app_DUMMY_oauth", "Authorization": "Bearer DUMMY_SESSION" }
});
const result = await response.json();
```

## Errors

| HTTP | Code | Meaning |
|---|---|---|
| 400 | INVALID_PARAMS | Invalid input; no Bitrix24 call |
| 401 | TOKEN_MISSING / INVALID_API_KEY | Missing tokens or unusable key |
| 403 | SCOPE_DENIED / BITRIX_ACCESS_DENIED / WRITE_BLOCKED_READONLY_KEY | Missing scope, portal permission refusal, or forbidden write |
| 404 | ENTITY_NOT_FOUND | Entry not found |
| 422 | BITRIX_ERROR | Portal business refusal or unsuccessful operation |
| 429 | BITRIX_RATE_LIMIT | Portal rate limit |
| 502 / 503 | BITRIX_ERROR | Invalid response, unavailable portal or timeout |

400: invalid input.

```json
{"success":false,"error":{"code":"INVALID_PARAMS","message":"Invalid parameter"}}
```

## Which ID to use

| Field | Endpoint |
|---|---|
| id (feed log comment) | DELETE /v1/feed-comments/:id |
| commentId (blog comment) + postId | DELETE /v1/posts/:id/comments/:commentId |

## See also

- [Calls](/docs/calls)
- [Feed](/docs/feed)
- [Errors](/docs/errors)
