fixing .remove() command in truncate to be compatible with mongodb 2.6+