Home

Delete data

Perform a DELETE on the table or view.

  • delete() should always be combined with filters to target the item(s) you wish to delete.
  • If you use delete() with filters and you have RLS enabled, only rows visible through SELECT policies are deleted. Note that by default no rows are visible, so you need at least one SELECT/ALL policy that makes the rows visible.
Parameters
  • options
    Optional
    object

    Named parameters


const { error } = await supabase
  .from('countries')
  .delete()
  .eq('id', 1)
Need some help?

Not to worry, our specialist engineers are here to help. Submit a support ticket through the Dashboard.