Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

SOLVED search for a folder and delete in ccmcache

  • Thread starter Thread starter Hemald
  • Start date Start date
  • Replies Replies 13
  • Views Views 7K
Status
Not open for further replies.

Hemald

Member
Messages
8
Reaction score
0
Points
1
Hello, I am looking for some script to search for a particular folder in ccmcache and delete if found. I want to push this script if works via sccm. Can someone please help
 
I don't think you can view the same folder name in ccmcache on different machines.
For example, while one machine has 1a,2,x folders, another system may have a different folder structure. i.e., c, d,1,2, etc..

You can remove outdated sources from ccmcache.
When an installation occurs and the source code is not already cached, the application will be downloaded and installed again.
 
Hello, I am looking for some script to search for a particular folder in ccmcache and delete if found. I want to push this script if works via sccm. Can someone please help
What exactly is your end goal? What exactly does it matter if a file sits in the cache for 30 days?
 
I don't think you can view the same folder name in ccmcache on different machines.
For example, while one machine has 1a,2,x folders, another system may have a different folder structure. i.e., c, d,1,2, etc..

You can remove outdated sources from ccmcache.
When an installation occurs and the source code is not already cached, the application will be downloaded and installed again.
I don't think you can view the same folder name in ccmcache on different machines.
For example, while one machine has 1a,2,x folders, another system may have a different folder structure. i.e., c, d,1,2, etc..

You can remove outdated sources from ccmcache.
When an installation occurs and the source code is not already cached, the application will be downloaded and installed again.
The goal is to delete few files and this requirement is part of the retirement of the package. We cleaned up C:\users and c:\program files but still there are some files in the ccmcache folder. I understand it sits in different alphabets or numbers and hence this problem is to search for the right word and then delete it from the ccmcache
 
Last edited:
What exactly is your end goal? What exactly does it matter if a file sits in the cache for 30 days?
Hello Garth, Here I do not want to clean the ccmcache folder and I have the script for this effort. My goal is to search for a specific package and delete that folder completely
 
Hello Garth, Here I do not want to clean the ccmcache folder and I have the script for this effort. My goal is to search for a specific package and delete that folder completely
I think his point is what is the harm of it remaining in the ccmcache folder. If you retired/removed the package in Config Mgr it really has no impact.
 
The goal is to delete few files and this requirement is part of the retirement of the package. We cleaned up C:\users and c:\program files but still there are some files in the ccmcache folder. I understand it sits in different alphabets or numbers and hence this problem is
We don't need to be worried about the source codes that are available in the ccmcache, c:\windows\temp, or USERPROFILE (runtime files) once the application has been entirely uninstalled (Application cleanup location - registries, files, shortcuts), as users are unable to install the application on their own.
 
@GSTERLING got it right. @Hemald Why create more work for yourself for "nothing".
So we figured out that there are some vulnerable jar files in the ccmcache folder on close to 100 systems and I got the script to clean the complete cache folder and not sure if it will solve my problem or create a problem. If i clean the ccmcache, it will clean up everything
 
So we figured out that there are some vulnerable jar files in the ccmcache folder on close to 100 systems and I got the script to clean the complete cache folder and not sure if it will solve my problem or create a problem. If i clean the ccmcache, it will clean up everything
So use a tool like Recast's RCT (free edition) to clear the cache on all computers within a collection.
<Keep in mind that I do work for Recast but more for the EI product>
 
So we figured out that there are some vulnerable jar files in the ccmcache folder on close to 100 systems and I got the script to clean the complete cache folder and not sure if it will solve my problem or create a problem. If i clean the ccmcache, it will clean up everything
Cleaning out the cache folder won't cause any issues. As Garth mentioned you can use Recast (or other methods) to do that. Keep in mind that ccmcache is a protected folder so a regular user won't be able to access it.
 
Hi all, I'm new to sccm. can share the script to clear cache from my client device? or any script which is allow if file store more then 30days?
I like to push package to all device in my company. I hope i can get response from anyone soon.
 
Hi all, I'm new to sccm. can share the script to clear cache from my client device? or any script which is allow if file store more then 30days?
I like to push package to all device in my company. I hope i can get response from anyone soon.
First off, ConfigMgr will automatically remove files from the cache older than 30 days.
Next, there is a link to the Right-Click Tools above and the free version will allow you to clear the cache for computers within a collection.
 
Status
Not open for further replies.

Forum statistics

Threads
7,038
Messages
27,519
Members
17,712
Latest member
yogabagaba
Back
Top