Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
How to delete umbraco node programmatically?.. not parent node
Hi anusha,
You'll have to grab a reference to the Document (depending on which version of Umbraco you run) like this:
var doc = new Document(documentId);doc.Delete(true); // pass true in to deleted it permanentlyumbraco.library.RefreshContent(); // update cache
Hope this helps :-)
- Bo
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Delete node programmatically
How to delete umbraco node programmatically?.. not parent node
Hi anusha,
You'll have to grab a reference to the Document (depending on which version of Umbraco you run) like this:
Hope this helps :-)
- Bo
is working on a reply...