More api and delete functionality