Handling object deletion.