Hi, I am having problems deleting all features within my feature layer using the following code. I'm guessing my mistake is in the reqstring . I am having a heck of a time trying to find examples of URL's that will delete all my features. Any suggestions?
// Encode the parameters as form data:
byte[] formData = UTF8Encoding.UTF8.GetBytes(reqString);
//req.contentLength = formData.Length;
// Send the request:
using (Stream post = req.GetRequestStream())
{
post.Write(formData, 0, formData.Length);
}
// Pick up the response:
string result = null;
using (HttpWebResponse resp = req.GetResponse() as HttpWebResponse)
{
StreamReader reader =
new StreamReader(resp.GetResponseStream());
result = reader.ReadToEnd();
Console.WriteLine(result.ToString());
}
return true;
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
return false;
}
}
}