DROP DATABASE Usage Notes - Teradata Database

SQL Data Definition Language Syntax and Examples

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Teradata Database
Release Number
20.00
Publication Date
June 2025
Content Type
SQL Reference
Publication ID
B035-1144-200K
ft:locale
en-US
ft:lastEdition
2026-09-23
dita:mapPath
mbm1747160743883.ditamap
dita:ditavalPath
jlp1749501702948.ditaval
ft:sourceId
dita
dita:id
mdr1472255012272
lifecycle
latest

Dropping a Populated Database

You cannot drop a populated database. To ensure that a database is empty:
  • Drop any hash or join indexes contained in any other databases or users that reference a table in the current database. See DROP INDEX, DROP HASH INDEX, and DROP JOIN INDEX.
  • Drop any triggers contained in any other databases or users that reference a table in the current database. See DROP MACRO.
  • Drop any journal tables in the current database. See MODIFY DATABASE.
  • Delete the database or drop all the objects within the database. See DELETE DATABASE.
For more information, see the appropriate statement or procedure call: