# org.tangled.secret.removeSecret

> Remove a CI secret

- Kind: procedure
- Authority: secret.tangled.org
- Lexicon: 1
- Published by [tangled.org](https://lexicon.garden/identity/did:plc:wshs7t2adsemcrrd4snkeqli), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.secret.removeSecret)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.secret.removeSecret/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.secret.removeSecret/analytics)

## Procedure (`org.tangled.secret.removeSecret`)

Type: procedure · POST

### Input (application/json)

- `key` (string, required)
  - Constraints: minLength: 1, maxLength: 50
- `repo` (string · did, required)

### Errors

- `InvalidRequest`: Invalid request parameters
- `RepoNotFound`: Repository not found
- `SecretNotFound`: The requested secret does not exist.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Remove a CI secret",
      "errors": [
        {
          "description": "Invalid request parameters",
          "name": "InvalidRequest"
        },
        {
          "description": "Repository not found",
          "name": "RepoNotFound"
        },
        {
          "description": "The requested secret does not exist.",
          "name": "SecretNotFound"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "key": {
              "maxLength": 50,
              "minLength": 1,
              "type": "string"
            },
            "repo": {
              "format": "did",
              "type": "string"
            }
          },
          "required": [
            "repo",
            "key"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "org.tangled.secret.removeSecret",
  "lexicon": 1
}
```
