added remove method to api