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