Try our conversational search powered by Generative AI!

Delete pages programatically after the unpublish date has passed

Vote:
 

Hi,

Is there a way to Delete a page once the unpublish date has passed - programatically?

Ideally - delete it completely bypassing the Trash.

In Episerver 6 R2.

Thanks

Jon

#195634
Aug 02, 2018 10:38
Vote:
 

I would say you need to create a scheduled job that checks for pages that are unpublished and deletes them.

If you do DataFactory.Instance.Delete it will bypass the Trash.

#195886
Aug 09, 2018 22:58
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.