Already accepted answer by a_horse_with_no_name will works though You can create a Custom Function if you want to use the same task for other tables in future, so you should create a function like below:
create or replace function drop_table (_tbl varchar) returns void as
$$
begin
if exists(select 1
from pg_class c
join pg_namespace nsp on c.relnamespace = nsp.oid
where c.relname = ''||_tbl||''
and c.relpersistence = 'u'
and nsp.nspname = 'public') then
execute format('DROP TABLE %s',_tbl);
raise notice 'Table %s Deleted',_tbl;
else
raise notice 'Table %s Not Deleted',_tbl;
end if;
end;
$$
language plpgsql
and simply call this function whenever you want
select drop_table('mytable');
or
select drop_table('mytable_1')