'PostgreSQL drop all schema part from "schema_name1"

How to delete all schema on some DB part from "schema_name1" and "schema_name2"

Getting all schema:

 SELECT schema_name
 FROM information_schema.schemata;

Drop specific schema by name:

DROP SCHEMA IF EXISTS  "13004-24340-1653231255491" CASCADE;


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source