made delete.py more general to work with pyroscope, reflected changes in vars.py