You are viewing limited content. For full access, please sign in.

Question

Question

DocumentInfo.Delete leaves orphaned data in propval metadata table

SDK
asked on May 22, 2019

As the title states, DocumentInfo.Delete leaves orphaned data in propval metadata table. Is this by design or should I use a different delete method such as Entry.Delete?

I read that Entry.Delete is more efficient but also read that DocumentInfo.Delete should work fine as long as you call DocumentInfo.Save.

0 0

Replies

replied on May 22, 2019

My guess is that the document is in the recycle bin. When it is purged from the recycle bin, then the propval data should be deleted.

1 0
replied on May 22, 2019 Show version history

@████████  I will check that out. 

I double checked and you are correct. Thanks.

0 0
replied on May 22, 2019

If you want an entire entry removed from the Recycle Bin also, then you can use the PurgeEntry method under Laserfiche.RepositoryAccess.

RecycleBin.PurgeEntry(EntryId,Session);

However, this method only seems to work on complete documents or folders. A different approach is needed for deleted pages and such.

Also note that even if an entry is purged, it is not removed immediately. A scheduled maintenance process runs to actually remove purged entries from the database.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.