confluent schema-registry schema delete¶
Description¶
Delete one or more schemas. This command should only be used if absolutely necessary.
confluent schema-registry schema delete [flags]
Flags¶
-S, --subject string REQUIRED: Subject of the schema.
-V, --version string REQUIRED: Version of the schema. Can be a specific version, "all", or "latest".
-P, --permanent Permanently delete the schema.
--api-key string API key.
--api-secret string API key secret.
--context string CLI context name.
--environment string Environment ID.
-S, --subject string REQUIRED: Subject of the schema.
-V, --version string REQUIRED: Version of the schema. Can be a specific version, "all", or "latest".
-P, --permanent Permanently delete the schema.
--ca-location string File or directory path to CA certificate(s) to authenticate the schema registry client.
--sr-endpoint string The URL of the schema registry cluster.
--context string CLI context name.
Global Flags¶
-h, --help Show help for this command.
--unsafe-trace Equivalent to -vvvv, but also log HTTP requests and responses which may contain plaintext secrets.
-v, --verbose count Increase verbosity (-v for warn, -vv for info, -vvv for debug, -vvvv for trace).
Examples¶
Soft delete the latest version of subject “payments”.
confluent schema-registry schema delete --subject payments --version latest
Soft delete the latest version of subject “payments”.
confluent schema-registry schema delete --subject payments --version latest --ca-location <ca-file-location> --sr-endpoint <schema-registry-endpoint>
See Also¶
- confluent schema-registry schema - Manage Schema Registry schemas.