api -> delete -> error handle