Made improvements to DELETE & CHECKOUT scripts.