added trainer command deletion mechanism