fix mongo bug in DELETE input API