save load system

I want it when it spawns it is saved in the map and when I delete it it gets deleted from the map