# Revision history [back]

### Delete and (re)load a model

Hello, I would like to do experiments programatically, where I:

1. Load a (sdf) robot model
2. Do some simulation with it
4. Go back to 1. with another model file

And this a LOT of times. However, I'm experiencing strange behaviours. For instance, if I do the following:

gz model -m robot -f /path/to/robot.sdf
gz model -m robot -d
gz model -m robot -f /path/to/robot.sdf


Gazebo freezes and crash.

Actually, it looks like that -d doesn't actually deletes the model, since I can still see topics about it when gz topic -l

Do you have any idea?

### Delete and (re)load a model

Hello, I would like to do experiments programatically, where I:

1. Load a (sdf) robot model
2. Do some simulation with it
4. Go back to 1. with another model file

And this a LOT of times. However, I'm experiencing strange behaviours. For instance, if I do the following:

gz model -m robot -f /path/to/robot.sdf
gz model -m robot -d
gz model -m robot -f /path/to/robot.sdf


Gazebo freezes and crash.

Actually, it It looks like that -d doesn't actually deletes the model, since I can still see topics about it when gz topic -l

Do you have any idea?