ERROR: One or more rows are referenced by foreign key constraint on ...


You attempted to delete rows in a table using delete_rows() but the rows being deleted are referenced by a foreign key constraint on another table.


You should first delete the rows in the table with the foreign key constraint that reference the rows that you wish to delete.


  • The error message identifies the table and columns of the dependent foreign key constraint.
Have more questions? Submit a request


Article is closed for comments.

Powered by Zendesk