Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Roger 195 posts 474 karma points
    Mar 04, 2013 @ 11:20
    Roger
    0

    Auto delete content

    Does anyone know if there is a way to automatically delete content from a specific parent node ID if @createDate is greater than 60 days?

    Thanks in advance

  • Rich Green 2246 posts 4008 karma points
    Mar 04, 2013 @ 11:41
    Rich Green
    0

    You can auto unpublish automatically via the inbuilt functionality, is that not enough?

    Rich

  • Jeroen Breuer 4877 posts 12207 karma points MVP 3x admin c-trib
    Mar 04, 2013 @ 12:54
    Jeroen Breuer
    0

    I know this is not what you're looking for, but the source code might show how you can do it yourself: http://our.umbraco.org/projects/website-utilities/unversion

    Jeroen

  • Roger 195 posts 474 karma points
    Mar 04, 2013 @ 13:05
    Roger
    0

    Hi Rich, no its not enough unfortunately.

    basically, there are a great deal of images being added as child nodes every week and the list will get huge so they need to be removed completely after 60 days.

    Unpublishing will only mean that they wont be shown, i've covered that in the XSLT be only showing the latest 60 images.

    Manually deleting the images older than 60 days from @createDate would be a nightmare :-/

  • Sharon 16 posts 37 karma points
    Mar 04, 2013 @ 15:42
    Sharon
    0

    You could use ApplicationBase to run through the nodes and deleting if createDate is greater 60 days

Please Sign in or register to post replies

Write your reply to:

Draft