9.6 Dropping Databases and Schemas Safely
Right, let’s talk about breaking things. Specifically, let’s talk about how to break things safely by dropping databases and schemas. This isn’t a “click yes on the warning dialog” situation. This is the database equivalent of defusing a bomb. Snip the wrong wire—or execute the wrong command without thinking—and you’ll have a very, very quiet (and very, very empty) server. The DROP command is the most ruthlessly efficient command in SQL. It doesn’t move things to a trash can. It doesn’t ask for a second opinion. It incinerates the object and scatters the ashes. So let’s learn how to wield this power without setting your entire project on fire.