rails console remove all code example
Example: ruby rails delete all of a model in console
user.destroy #For a single record
user.agents.destroy_all #For a collection
user.destroy #For a single record
user.agents.destroy_all #For a collection