Check out example codes for "ruby rails delete all of a model in console". It will help you in understanding the concepts better.
Code Example 1
user.destroy #For a single record
user.agents.destroy_all #For a collection
Learn ReactJs, React Native from akashmittal.com