Check out example codes for "delete entries in postgresql". It will help you in understanding the concepts better.

Code Example 1

DELETE FROM table
USING another_table
WHERE table.id = another_table.id;

Code Example 2

DELETE FROM table WHERE condition;

Code Example 3

DELETE FROM tablename;

Learn ReactJs, React Native from akashmittal.com