Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to physically delete a ContentItem ? #6841

Closed
RockNHawk opened this issue Aug 6, 2020 · 3 comments
Closed

How to physically delete a ContentItem ? #6841

RockNHawk opened this issue Aug 6, 2020 · 3 comments

Comments

@RockNHawk
Copy link

IContentManager only provide a logical deletion, how can I physically delete a ContentItem ?

    /// <summary>
    /// Removes <see cref="ContentItem.Latest"/> and <see cref="ContentItem.Published"/> flags
    /// from a content item, making it invisible from the system. It doesn't physically delete
    /// the content item.
    /// </summary>
    /// <param name="contentItem"></param>
    Task RemoveAsync(ContentItem contentItem);
@hishamco
Copy link
Member

hishamco commented Aug 6, 2020

What if you create ContentHandler and overrideIContentHandler.RemovingAsync() to delete the content item permenantly

@deanmarcussen
Copy link
Member

Duplicate of #6056

Someone could implement the feature.

@aaronamm
Copy link
Contributor

aaronamm commented May 3, 2024

@hishamco I right now use your suggestion as how to hard remove a content item.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants