Search
Get Started
DT
Drizzle Team
•
3y ago
pastilhas
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;`)
const emptied = await db.execute(sql`DELETE FROM featured_salons;`)
in the meantime
Thank you
Drizzle Team
Join
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,794
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
const
emptied
=
await
db.
execute
(
sql
`DELETE FROM featured_salons;`
)
const
emptied
=
await
db.
execute
(
sql
`DELETE FROM featured_salons;`
)
Similar Threads
How to type a Table
DT
Drizzle Team / help
2y ago
Check for empty string in postgres
DT
Drizzle Team / help
3y ago
How to `as` a table name
DT
Drizzle Team / help
15mo ago
How to migrate changes to a table
DT
Drizzle Team / help
3y ago