You need to sign in to do that
Don't have an account?
neelam moore
Deleting a Content Version Record
Hi All,
I m trying to delete a content version record from my java code using REST api using HTTPDelete :
HttpDelete delete = new HttpDelete(baseUri+"/sobjects/ContentVersion/"+v);
where delete.getURI() = https:// xxx.my.salesforce.com/services/data/v35.0/sobjects/ContentVersion/06824000000aAqlAAE
HttpResponse response = htttpCient.execute(delete);
but i get a status 401 on delete. This same URI works if if i delete a Account object without an issue. Can anyone please help ? I would really appriciate it!
Thank you!
I m trying to delete a content version record from my java code using REST api using HTTPDelete :
HttpDelete delete = new HttpDelete(baseUri+"/sobjects/ContentVersion/"+v);
where delete.getURI() = https:// xxx.my.salesforce.com/services/data/v35.0/sobjects/ContentVersion/06824000000aAqlAAE
HttpResponse response = htttpCient.execute(delete);
but i get a status 401 on delete. This same URI works if if i delete a Account object without an issue. Can anyone please help ? I would really appriciate it!
Thank you!
Through Api you can not delete Content Version .You can check the screen shot where delete properties is false .also you can check in work bench .
All Answers
Through Api you can not delete Content Version .You can check the screen shot where delete properties is false .also you can check in work bench .