Update method of deleting record