# Delete a Secret

Deletes a secret from the secret store by name and scope.

## Request

```curl
curl https://api.stripe.com/v1/apps/secrets/delete \
  -u "<<YOUR_SECRET_KEY>>" \
  -d name=my-api-key \
  -d "scope[type]=account"
```

### Response

```json
{
  "id": "appsecret_5110hHS1707T6fjBnah1LkdIwHu7ix",
  "object": "apps.secret",
  "deleted": true
}
```

## Returns

Returns the deleted secret object.

## Parameters

- `name` (string, required)
  A name for the secret that’s unique within the scope.

- [`scope`](https://docs.stripe.com/api/apps/secret_store/delete.md?query=scope) (object, required)
  Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user.
