Fix api output for delete