Object deletion logic