Added delete option to api