use this->erase

I'm not sure if this works on 12.04, please check someone.