Skip to content
Discussion options

You must be logged in to vote

What you see is by design: RemoveAsync is a soft delete. It loads the versions that are published or latest, sets Published = false and Latest = false on them, saves them and runs the removal handlers. Nothing is deleted from Document or from the index tables; every version simply stays there as an "archived" version.

public async Task<bool> RemoveAsync(ContentItem contentItem)
{
ArgumentNullException.ThrowIfNull(contentItem);
var activeVersions = await _session.Query<ContentItem, ContentItemIndex>()
.Where(x =>
x.ContentItemId == content…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by rpedu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants