More in this section

Forums / Developing with Sitefinity / Sitefinity auto delete library items

Sitefinity auto delete library items

2 posts, 0 answered
  1. Zac
    Zac avatar
    2 posts
    30 Jun 2010
    21 Sep 2010
    Link to this post

      I was wondering how we could go about creating site functionality that automatically deletes old "Images and Documents" files from a specific "Images and Documents" folder?  We basically have an Images and Documents folder that contains some user uploaded files that we want to automatically clean up after X days.
     Does this exist in Sitefinity or would we need to custom develop it?

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    21 Sep 2010
    Link to this post
    Hi Zac,

    There is no suck functionality out of the box, but you can easily implement it. For instance, inside Application_Start of Global.asax check the current DateTime and if it matches your criteria use the API to delete all items from a particular library. You  can take a look at

    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered