Updates deletion logic