Delete pages programatically after the unpublish date has passed



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.



Aug 02, 2018 10:38

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.

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.