Drop a catalog

2026-03-06 07:02:42  Updated

You can use the DROP CATALOG [IF EXISTS] external_catalog_name; statement to drop a catalog that is no longer in use.

When you specify the IF EXISTS option, no error is returned if the catalog to be dropped does not exist. If you do not specify the IF EXISTS option, an error is returned when the catalog to be dropped does not exist.

Here is an example:

obclient> DROP CATALOG IF EXISTS test_odps_catalog;

References

Contact Us