Delete a content item based on a certain condition. #18443
Unanswered
Sohanmaali
asked this question in
Q&A
Replies: 1 comment
-
|
Unless the exception is fatal, such exceptions will be swallowed and logged. There's no feature explicitly to prevent the removal of a content item, like we have Until then, you can apply a less than ideal workaround of rolling back the transaction, and thus the content item save, in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In RemovingAsync, I throw an exception to prevent deletion of a content item used in VendorIndex.
public class ContentsHandler : ContentHandlerBase
{
}
But even with this exception, the content item still gets deleted. We need a way to stop deletion based on a condition without it being removed.
Beta Was this translation helpful? Give feedback.
All reactions