Implemented task deletion