Added erase API method