API working properly for delete