Check out example codes for "drop domain postgresql". It will help you in understanding the concepts better.

Code Example 1

DROP DOMAIN [IF EXISTS ] name [, ...]  [ CASCADE | RESTRICT ]

Learn ReactJs, React Native from akashmittal.com