DROP SCHEMA_REGISTRY

Syntax

DROP SCHEMA_REGISTRY schema_registry_name;

Description

Drops a Schema Registry from the organization. A Schema Registry cannot be dropped if there exist any stores that depend on that Schema Registry.

DROP SCHEMA_REGISTRY cannot be undone. Use it with care!

Arguments

schema_registry_name

Specifies the name of the Schema Registry. For case-sensitive names, the name must be wrapped in double quotes, otherwise, the lowercased name will be used.

Examples

Drop a Schema Registry

Drops the Schema Registry named sr:

demodb.public/demostore# LIST SCHEMA_REGISTRIES;
  Name |      Type      |                       URI                        |  Owner   |      Created at      |      Updated at
-------+----------------+--------------------------------------------------+----------+----------------------+-----------------------
  sr   | ConfluentCloud | https://abcd-8jkd3.us-east-2.aws.confluent.cloud | sysadmin | 2022-12-28T14:49:31Z | 2022-12-28T14:49:31Z

demodb.public/demostore# DROP SCHEMA_REGISTRY sr;
demodb.public/demostore# LIST SCHEMA_REGISTRIES;
  Name | Type | URI | Owner | Created at | Updated at
-------+------+-----+-------+------------+-------------

Drop a Schema Registry with a case-sensitive name

Drops the Schema Registry named SchemaReg:

SCHEMA_REGISTRIES;
    Name    |      Type      |                       URI                        |  Owner   |      Created at      |      Updated at
------------+----------------+--------------------------------------------------+----------+----------------------+-----------------------
  SchemaReg | ConfluentCloud | https://abcd-8jkd3.us-east-2.aws.confluent.cloud | sysadmin | 2022-12-28T14:49:31Z | 2022-12-28T14:49:31Z

demodb.public/demostore# DROP SCHEMA_REGISTRY SchemaReg;
demodb.public/demostore# LIST SCHEMA_REGISTRIES;
  Name | Type | URI | Owner | Created at | Updated at
-------+------+-----+-------+------------+-------------

Last updated