delete api fixed