Gazebo spawn delete is not works

Course : mastering mobile manipulator
I am on chapter2.
Tried to delete gazebp spawn table(box), but could not delete it.
Please help.

Hello @hki,

Yes, the delete button has been disabled recently to prevent other issues. If you want to delete the object from the simulation, please use the command below:

rosservice call /gazebo/delete_model "model_name: 'my_object'"

Note that my_object is the model name assigned to the spawned object, in this case, the box.