> ## Documentation Index
> Fetch the complete documentation index at: https://learn.nexudus.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Event Comment

> Deletes a comment previously posted by the authenticated customer on an event.

# Delete Event Comment

Removes a comment that the authenticated customer posted on an event. After a successful deletion the event detail data should be refetched to update the `Event.Comments` array.

<Note>This endpoint uses the `/en/` legacy route prefix and the `POST` method rather than `DELETE`, despite being a deletion operation.</Note>

## Authentication

Requires a valid customer bearer token. Customers can only delete their own comments.

## Request Body

<ParamField body="id" type="number" required>
  The integer ID of the comment to delete. Obtained as `Event.Comments[].Id` from `GET /api/public/events/{id}`.
</ParamField>

## Response

Returns an empty `200 OK` on success.

## Examples

### Delete a comment

```http theme={null}
POST /en/events/deleteComment
Authorization: Bearer {token}
Content-Type: application/json

{ "id": 77 }
```

```
HTTP/1.1 200 OK
```

## TypeScript Integration

```typescript theme={null}
import endpoints from '@/api/endpoints'

await httpClient.post(endpoints.events.deleteComment, { id: 77 })
```

## Usage in Portal

| Context                                         | Source file                        |
| ----------------------------------------------- | ---------------------------------- |
| Event detail page comment list (`/events/{id}`) | `src/views/events/details/data.ts` |

## Error Responses

<ResponseField name="401 Unauthorized" type="error">
  The customer is not authenticated or the session has expired.
</ResponseField>

<ResponseField name="404 Not Found" type="error">
  No comment with the specified `id` exists or it does not belong to the authenticated customer.
</ResponseField>

## Related Endpoints

| Method | Endpoint                  | Description                                    |
| ------ | ------------------------- | ---------------------------------------------- |
| `GET`  | `/api/public/events/{id}` | Event detail — includes `Event.Comments` array |
| `POST` | `/en/events/newComment`   | Post a new comment on an event                 |
