Write deletion helper function definitions