Here is an example of how to run PostgreSQL commands in a web page.
-- Connect to PostgreSQL (replace with your database name)
-- Replace 'my_database' with your actual database name
-- Replace 'my_table' with your actual table name
-- You may need to adjust the schema and table names as per your setup
\connect my_database
\set ON_ERROR_STOP true
DROP TABLE IF EXISTS my_table;
\echo "Table 'my_table' has been dropped."