# place.wisp.v2.privateSite.delete

> Published by [wisp.place](https://lexicon.garden/identity/did:plc:7puq73yz2hkvbcpdhnsze2qw)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:7puq73yz2hkvbcpdhnsze2qw/place.wisp.v2.privateSite.delete)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7puq73yz2hkvbcpdhnsze2qw/place.wisp.v2.privateSite.delete/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7puq73yz2hkvbcpdhnsze2qw/place.wisp.v2.privateSite.delete/examples)

## Definitions

### `place.wisp.v2.privateSite.delete`

**Type**: `procedure`

Delete an owned private site, its stored files, and all of its share links.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `siteId` | `string` (record-key) | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `deleted` | `boolean` | Yes |  |
| `siteId` | `string` (record-key) | Yes |  |

#### Errors

- **AuthenticationRequired**
- **InvalidRequest**
- **NotFound**

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Delete an owned private site, its stored files, and all of its share links.",
      "errors": [
        {
          "name": "AuthenticationRequired"
        },
        {
          "name": "InvalidRequest"
        },
        {
          "name": "NotFound"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "siteId": {
              "format": "record-key",
              "type": "string"
            }
          },
          "required": [
            "siteId"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "deleted": {
              "const": true,
              "type": "boolean"
            },
            "siteId": {
              "format": "record-key",
              "type": "string"
            }
          },
          "required": [
            "siteId",
            "deleted"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "place.wisp.v2.privateSite.delete",
  "lexicon": 1
}
```
