Use the following trick to stop your beautiful gardens from turning into graveyards. Enable the move_objects on code, then click on the buy icon. Click on the tombstone that you want to delete. As you pick it up, click on the blue object at the bottom of your screen. The tombstone should be gone, and your Sim will stop mourning.