Delete function completed