use cascade to drop table sql code example Example: drop cascade drop table if exists table_name cascade;