how to empty a table (postgres)

What's the best way to programatically empty a database table?

I'm using
const emptied = await db.execute(sql`DELETE FROM featured_salons;`)

in the meantime

Thank you
Was this page helpful?