# social.coves.community.comment.delete

> Published by [coves.social](https://lexicon.garden/identity/did:web:coves.social)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.community.comment.delete)
- [Documentation](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.community.comment.delete/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.community.comment.delete/examples)

## Definitions

### `social.coves.community.comment.delete`

**Type**: `procedure`

Delete a comment. Only the comment author can delete their own comments.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (at-uri) | Yes | AT-URI of the comment to delete |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|

#### Errors

- **CommentNotFound**: Comment with the specified URI does not exist
- **NotAuthorized**: User is not authorized to delete this comment (not the author)

## Raw Schema

```json
{
  "id": "social.coves.community.comment.delete",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "uri"
          ],
          "properties": {
            "uri": {
              "type": "string",
              "format": "at-uri",
              "description": "AT-URI of the comment to delete"
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "CommentNotFound",
          "description": "Comment with the specified URI does not exist"
        },
        {
          "name": "NotAuthorized",
          "description": "User is not authorized to delete this comment (not the author)"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "properties": {}
        },
        "encoding": "application/json"
      },
      "description": "Delete a comment. Only the comment author can delete their own comments."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
