Update delete function and implemented multiple deletes