Repairing delete functionality.