Updating the Sherpa Delete script with modular design and generic use
cases