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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.