Simple delete on a feature server. HELP NEEDED

Discussion created by brightbluesky on Jan 9, 2013
HI all I am trying to delete a feature on a feature server using the applyEdits function

for (var i = 0; i < results.features.length; i++)
  valve_suggest_new.applyEdits(null, null, [results.features[i].attributes['OBJECTID']], function (adds, updates, deletes)
   alert("adds : " + JSON.stringify(adds));
   alert("updates : " + JSON.stringify(updates));
   alert("deletes : " + JSON.stringify(deletes));
  function (err)

I am just passing in an array of objectid or just a singular objectid to delete the feature off a feature server but its not working. I try using the editor and just passing in an object id and it deletes.

Please HELP!