我对元素的 DELETE 查询有效,但该文件仍存在于列表中(0 字节)。如何解决这个问题(在我们删除https://my.alfresco.com上的文件时删除)
这是我的查询:
string accessToken = "my_access_token";
HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create("https://api.alfresco.com/mywebsite.com/public/cmis/versions/1.0/atom/content?id=" + idFile);
req.Headers.Add("Authorization", "Bearer " + accessToken);
req.Method = "DELETE";
HttpWebResponse webResponse = (HttpWebResponse)req.GetResponse();
var sr = new StreamReader(webResponse.GetResponseStream());
string responseCOntent = sr.ReadToEnd();
MessageBox.Show(webResponse.StatusCode.ToString());