Updating sendDelete() function