Check out example codes for "empty an sql table". It will help you in understanding the concepts better.

Code Example 1

TRUNCATE TABLE table_name;

Learn ReactJs, React Native from akashmittal.com