separate delete and delete by id in api