Scheduling cleanup of upload files and preview files

By default, the Content Manager does not clean up files that users upload to Content Manager, nor files that Content Manager generates when users preview content. Schedule regular cleanups of the folders that contain those files.

Procedure

  1. Identify the folder in which the Content Manager Core Service stores uploaded files to be used as Multimedia Components:
    • By default, this folder is C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp.
    • You may have configured a different location in the <binaryContentStorage> element in the file %TRIDION_HOME%\Tridion.ContentManager.config; if you have an on-premises scaled-out setup, this should be a shared network folder that all Content Manager servers can access.
  2. Identify the folder in which Content Manager Explorer stores uploaded files such as profile pictures and Contacts and Keywords imported using Content Manager Explorer:
    • By default, this folder is C:\ProgramData\SDL\Upload\.
    • You may have configured a different location in the <Tridion.UploadDirectoy> element in the file %TRIDION_HOME%\web\WebUI\WebRoot\Configuration\System.config.
  3. Create a Windows scheduling task that regularly wipes these folders. Choose a moment of low system activity to perform the wipe, and choose a frequency based on your expectations of how often users will upload files, and how large these files will be.
  4. Identify the folder in which Content Manager stores files generated during previewing.
    • By default, this folder is %TRIDION_HOME%\web\Preview\.
    • You may have configured a different location in the previewPath attribute of the rendering element in Tridion.ContentManager.config.
  5. Create a Windows scheduling task that regularly wipes this folder. Choose a moment of low system activity to perform the wipe, and choose a frequency based on your expectations of how often users preview content.