# tools.ozone.set.deleteSet

> Published by [ozone-lexicons.bsky.social](https://lexicon.garden/identity/did:plc:33dt5kftu3jq2h5h4jjlqezt)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.set.deleteSet)
- [Documentation](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.set.deleteSet/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.set.deleteSet/examples)

## Definitions

### `tools.ozone.set.deleteSet`

**Type**: `procedure`

Delete an entire set. Attempting to delete a set that does not exist will result in an error.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` | Yes | Name of the set to delete |

#### Output

**Encoding**: `application/json`

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

#### Errors

- **SetNotFound**: set with the given name does not exist

## Raw Schema

```json
{
  "id": "tools.ozone.set.deleteSet",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "name"
          ],
          "properties": {
            "name": {
              "type": "string",
              "description": "Name of the set to delete"
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "SetNotFound",
          "description": "set with the given name does not exist"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "properties": {}
        },
        "encoding": "application/json"
      },
      "description": "Delete an entire set. Attempting to delete a set that does not exist will result in an error."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
