moved api call into repository for remove