Delete function finished