Configuratiemanager Content Library Cleanup Tool: How to Use and Requirements. Beginning with version 1702, you can use a command-line tool (ContentLibraryCleanup.exe) to remove content that is no longer associated with any package or application from a distributiepunt (orphaned content). This tool is called the content library cleanup tool and replaces older versions of similar tools released for past Configuratiemanager products.
The tool only affects the content on the distributiepunt that you specify when you run the tool. The tool cannot remove content from the content library on the site server.
You can find ContentLibraryCleanup.exe in the %CM_Installation_Path%\cd.latest\SMSSETUP\TOOLS\ContentLibraryCleanup\ folder on the site server at a central administration site or primary site.
<SCCM_Installation_Path>\cd.latest\SMSSETUP\TOOLS\ContentLibraryCleanup\
SCCM Content Library Cleanup Tool Requirements
- You can run the content library cleanup tool directly on the computer that hosts the distributiepunt or remotely from another server
- You can run the tool from a single distributiepunt at a time
- You will need to have Full Administrator RBAC Role and the “All” Security scope in the Configuratiemanager hierarchy
Running the Tool
You can run the tool in 2 modes: What-If mode and Delete mode.I will start by specifying the /what-if switch. This mode allows you to identify the content that would be deleted from the distributiepunt.1. On your Primary site, open an administrative command prompt and go to the ContentLibraryCleanup folder (see full path above);
2. If you run ContentLibraryCleanup.exe without arguments you will get /help;
3. Loop:
ContentLibraryCleanup.exe /what-f /dp <DPServerName>
4. After completion you get logbestand with information about clean-up (if you run it with /delete switch);