---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://ydb.tech/docs/en/yql/reference/syntax/drop-object-type-secret.md
  - https://ydb.tech/docs/ru/yql/reference/syntax/drop-object-type-secret.md
sourcePath: en/core/yql/reference/syntax/drop-object-type-secret.md
---
> **Documentation Index:** Fetch the complete configuration index at https://ydb.tech/docs/en/llms.txt

# DROP OBJECT (TYPE SECRET)

<!-- source: en/yql/reference/syntax/_includes/deprecated_secrets_warning.md -->
{% note alert %}

**This command is deprecated** and will be removed in future versions of YDB. The recommended syntax for working with secrets is described in the [Secrets](https://ydb.tech/docs/en/concepts/datamodel/secrets.md) section.

{% endnote %}
<!-- endsource: en/yql/reference/syntax/_includes/deprecated_secrets_warning.md -->

Deletes the specified [secret](https://ydb.tech/docs/en/concepts/datamodel/secrets.md).

If no secret with that name exists, an error is returned.

## Example

```yql
DROP OBJECT my_secret (TYPE SECRET);
```
