def _destroy_test_db(self, test_database_name, verbosity):
        # Remove the test database to clean up after
        # ourselves. Connect to the previous database (not the test database)
        # to do so, because it's not allowed to delete a database while being
        # connected to it.
        cursor = self.connection.cursor()
        self.set_autocommit()
        time.sleep(1) # To avoid "database is being accessed by other users" errors.
        cursor.execute("DROP DATABASE %s" % self.connection.ops.quote_name(test_database_name))
        self.connection.close()
Internal implementation - remove the test db tables.
dataset/ETHPy150Open CollabQ/CollabQ/vendor/django/db/backends/creation.py/BaseDatabaseCreation._destroy_test_db