Check out example codes for "how to delete all the rows in a table without deleting the table in mysql". It will help you in understanding the concepts better.

Code Example 1

delete from tableName;

Learn ReactJs, React Native from akashmittal.com