Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@brijbaroda
Created July 5, 2020 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save brijbaroda/fd4d095f8e135a839087e5e9351e46ae to your computer and use it in GitHub Desktop.
Save brijbaroda/fd4d095f8e135a839087e5e9351e46ae to your computer and use it in GitHub Desktop.
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/" xmlns:env="http://www.sitecore.net/xmlconfig/env/">
<sitecore>
<scheduling>
<agent type="Sitecore.Tasks.CleanupAgent" method="Run" interval="24:00:00" >
<files hint="raw:AddCommand">
<!-- There might be other agents for logs folder cleanup -->
<remove folder="$(dataFolder)/mediaIndexing" pattern="*.*" maxAge="30.00:00:00" role:require="ContentManagement"/>
</files>
</agent>
</scheduling>
</sitecore>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment