Implemented delete function for parser