Add delete function handler.