Over 1 million tech questions and answers.

Script to delete all temp files from all user profiles

Q: Script to delete all temp files from all user profiles

Hi all,

What's the correct script to delete all temporary files from ALL user profiles inside C:\Documents and Settings or C:\Users ??

This is what I used and tested but it only delete the temp files from the current profile, not all profiles:


PHP Code:



@echo off

echo Disk cleanup: This will delete all temporary files stored in all profiles' directories and subdirectories.

pause

rd /s /q "C:\Documents and Settings\%username%\Local Settings\Temp"

rd /s /q "C:\Documents and Settings\%username%\Local Settings\Temporary Internet Files"

rd /s /q "C:\Windows\Temp"

cleanmgr /sagerun:99

pause





Your help will be highly appreciated...

-Alvin

RELEVANCY SCORE 200
Preferred Solution: Script to delete all temp files from all user profiles

I recommend downloading and running Reimage. It's a computer repair tool that has been proven to identify and fix many Windows problems with a high level of success.

I've used it in the past to identify and fix everything from blue screens (BSOD's), ActiveX errors, corrupt files and processes, dll/exe/sys errors, recover lost memory, Windows update problems, defragging, malware removal etc.

You can download it direct from this link http://downloadreimage.com/download.php. (This link will automatically start a download of Reimage that you can save to your computer.)

A: Script to delete all temp files from all user profiles

I searched for scripts from the web. How about this? What do you think?


PHP Code:



@echo off

SET SRC1
=C:\Documents and Settings
SET SRC2
=Local Settings\Temporary Internet Files\Content.IE5
SET SRC3
=Local Settings\History
SET SRC4
=Local Settings\Temp
SET SRC5
=Cookies

echo cleaning temporary internet files
FOR /D %%X IN ("%SRC1%\*") DO FOR /D %%Y IN ("%%X\%SRC2%\*.*") DO RMDIR /S /Q "%%Y"

echo cleaning history
FOR /D %%X IN ("%SRC1%\*") DO FOR /D %%Y IN ("%%X\%SRC3%\*.*") DO RMDIR /S /Q "%%Y"

echo cleaning windows temp files
FOR /D %%X IN ("%SRC1%\*") DO FOR /D %%Y IN ("%%X\%SRC4%\*.*") DO RMDIR /S /Q "%%Y"
FOR /D %%X IN ("%SRC1%\*") DO FOR %%Y IN ("%%X\%SRC3%\*.*") DO DEL /F /S /Q "%%Y"
FOR /D %%X IN ("%SRC1%\*") DO FOR %%Y IN ("%%X\%SRC4%\*.*") DO DEL /F /S /Q "%%Y"

echo cleaning Cookies
FOR /D %%X IN ("%SRC1%\*") DO FOR %%Y IN ("%%X\%SRC5%\*.*") DO DEL /F /S /Q "%%Y"

del /f /s /q "%windir%\temp"
FOR /D %%X IN ("%windir%\temp\*") DO RMDIR /S /Q "%%X"

pause






Any ideas, guys?

Read other 1 answers
RELEVANCY SCORE 111.6

greetings everyone and thanks for letting me join this cool site.

I have several computers on a small network with multiple users setup on them - all windows xp machines. Each user profile collects temporary files in a temp directory that is located in:

c:\Documents and Settings\user01\local settings\temp\
c:\Documents and Settings\user02\local settings\temp\

I would like to write a batch file that would go through each user profile and delete all of the temporary files in each temp directory. Users are added and removed occasionally so I need the batch file to be smart enough fill in the username by itself without me having to edit it each time a user is added or deleted. I plan to run it as a scheduled task so the batch file will be located in the root of C:\ (c:\del-tmpfiles.bat)

I've played with it from the cl a little bit but haven't been able to come up with anything that works yet. Thanks in advance for any tips.
 

A:Need to delete files in all \Temp directories of all user profiles

Welcome to TSG!

This will delete the files and folders in each user account.
Files in use will not be deleted
Files in the Temp folder that are hidden will not be deleted.
(Those can be included if you want, change DEL /F /Q to Del /A:H /F /Q).
Hidden Folders and their contents in the Temp folder will be deleted.
(Those can be excluded if you want).
Code:
@Echo Off
PushD C:\Documents and Settings
For /F "Delims=" %%I In ('Dir /AD /B ^|Findstr /I /V /C:"All Users" /C:"Default User" /C:"LocalService" /C:"NetworkService"') Do (
@Echo Off
PushD C:\Documents and Settings
For /F "Delims=" %%I In ('Dir /AD /B ^|Findstr /I /V /C:"LocalService" /C:"NetworkService"') Do (
If Exist "%%I\Local Settings\Temp" (
PushD %%I\Local Settings\Temp
For /F "Delims=" %%A In ('Dir /AD /B') Do RD /Q /S "%%A" >Nul 2>&1
Del /F /Q *.* >Nul 2>&1
PopD
))
PopD

EDIT: I added a check to verify the Temp folder exists. If it doesn't, this could start deleting files unexpectedly.

HTH

Jerry
 

Read other 3 answers
RELEVANCY SCORE 111.6

In our current environment we are running about 200 VM machines with about 600 different user profiles. Over time these profiles has accumulated a lot of cookies and temp files. I need to find a script or some VM program that I can run about once a month to clean up all the garbage cookies, and temp files in these user profiles. Can and one help me with this.

Thanks
Larry Hines

A:How to delete temp files, and cookies from user profiles

ATF-cleaner or ccleaner will do this job, just google either.

Read other 1 answers
RELEVANCY SCORE 81.6

This "temp" folder has installed itself under "Users" in Windows 7:



Here are the contents of the temp folder. All the folders are empty:



My problem is that when I delete this temp folder, they automatically reinstall themselves on startup. I have disabled all programs on startup by using "msconfig.exe" and unchecking all programs under the start tab. I seemed to start having this problem after I downloaded the free program CCleaner. You think there is something in the registry causing this problem? Notice that the date on the temp folder is always very recent. I also downloaded a program called Sysinternals a few weeks ago, and it did not actually install on my computer, but rather the files for running it somehow wound up in my documents folder. Thanks.

A:Windows 7 I can't delete temp files in User directory

Hello Endzone,

You are logged in as the TEMP user, that is why you cannot delete it.
I would suggest if you have another admin account of your computer, you log-in to that then delete the TEMP user.
But sometimes, you only need to restart the computer then the TEMP will disappear.

Read other 9 answers
RELEVANCY SCORE 79.2

Hi folks. I want to put a batch file together that will delete all files at the user profile in the following directories when my users log off:



C:\Users\USER\AppData\Local\Temp
C:\Users\USER\AppData\Local\Microsoft\Windows\Temporary Internet Files
C:\Windows\Temp



Help would be appreciated!  Thanks.

A:Help creating batch file that will delete all user profile temp files on logoff.

A simple del command line may not work, because you do not have access on the temp files of other users. If you still encounter problems after trying this suggestion, I recommend that you discuss it in our Script Center, you may need a VB script that can
ignore UAC.
The Official Scripting Guys Forum! 
Arthur Xie
TechNet Subscriber Support in forum  

If you have any feedback on our support, please contact
[email protected] remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ?

Read other 6 answers
RELEVANCY SCORE 77.6

I have acquired a script from the internet which deletes all the locally cached profiles on a computer if they are not on the specified list of exceptions.

By default, I think it does something like this:

Gets all the folders in the 'Users' directory > Goes through the list of exceptions > Deletes all the folders which aren't on the list of exceptions > If a folder can't be deleted, it leaves it behind and goes onto the next one. (This means it doesn't hang).

This is ok, but a lot of the time, profiles with incorrect owners are present. In this case, the script won't be able to delete the profile, will move onto the next one, leaving it behind. I need all the folders which are non-exempt to be deleted.

I need it to do the following:

Get all the folders in the 'Users' directory > Go through the list of exceptions > Change the owner of all folders which are non-exempt > Delete all folders which are non-exempt (which it should be able to do at this point) > In case of some unknown error, go onto the next one (for the sake of it not hanging).

I have had a go at this myself, but I haven't quite got it. Note: I may need to set the permissions as well, but if I can get it to set the owner, I can simply add the permissions bit as a switch on the subinacl command.

I have attached the script. Please let me know if you need any more information and thanks for any help with this.

Matthew.
 

Read other answers
RELEVANCY SCORE 76

Hi all,

I have a Windows XP SP3 OS with Outlook 2007.

I was hoping someone could help me with a batch file that when ran would search through multiple user profiles and delete the outlook.ost file from there profile located in C: Documents and Settings\<username>\Application Data\Microsoft\Outlook\

I have the following which is probably totally wrong....

for /d %%K in ("C:\Documents and Settings\*") do del "%%~fK\Application Data\Microsoft\Outlook\outlook.ost")
for /d %%K in ("C:\Documents and Settings\*") do @echo %%K

I have it listing all the profiles as well, but it does not delete the ost file

And if it was possible to show free space before and after batch file was run.

Thanks for any help in pointing me in the right direction with this.

Regards,
Noobie
 

A:Script to delete a certain file from multiple profiles

Read other 6 answers
RELEVANCY SCORE 75.6

I have seen multiple question and answers in forum regarding this GPO to Delete User Profiles Older than a Specified
Number of Days on System Restart not working or some hotfixes, in my environment it is working on all required systems in one OU. But in some PCs it is not deleting the parent folder and some folder under appdata.
like c:\Users\DomainUser\Appdata\local\abc\efg\
so the profile data like my documents, pictures, desktop etc are deleted but folder structure "\DomainUser\Appdata\local\abc\efg\" in efg folder is empty, which creating confusion during Audit and physical check.

Thanks, Anuj.A

Read other answers
RELEVANCY SCORE 75.2

Below is what I have thus far. It only works on ususally the first folder but not the others. I get no errors and I used "if fso.folderexists" to not error out on folder already removed. Thought it might have been a time thing since some of them have numberous temporary internet files so added wscript.sleep 60000(took it back out)between each folder deletion but made no difference.
Any and all help would be appreciated
Thanks

Dim FSO, Folder
set FSO=CreateObject("Scripting.FileSystemObject")
Folder="C:\Documents and Settings\abaxter"
if fso.folderexists(folder) then
FSO.DeleteFolder(Folder), True

Folder="C:\Documents and Settings\abrown"
if fso.folderexists(folder) then
FSO.DeleteFolder(Folder), True

Folder="C:\Documents and Settings\bbareither"
if fso.folderexists(folder) then
FSO.DeleteFolder(Folder), True

Folder="C:\Documents and Settings\chorn"
if fso.folderexists(folder) then
FSO.DeleteFolder(Folder), True

Folder="C:\Documents and Settings\dmonk"
if fso.folderexists(folder) then
FSO.DeleteFolder(Folder), True

Folder="C:\Documents and Settings\abrown"
if fso.folderexists(folder) then
FSO.DeleteFolder(Folder), True

wscript.quit
end if
end if
end if
end if
end if
end if
 

Read other answers
RELEVANCY SCORE 73.6

I notice that in the c:\documents and settings\username\local settings that there is a TEMP and a TEMPORARY INTERNET FILES directory.

When I delete the temporary internet files in explorer let's say, the files are gone in the pathname above\temporary interent files.

My question is can I just go and delete the files in the TEMP folder manually as well? without damaging some other program applicaiton operations?

Thanks
Stompster
 

A:Can I Delete All "User/local setting/temp files?"

Read other 8 answers
RELEVANCY SCORE 72.8

Hello

I have one user account, however I seem to have acquired more than one user profiles.  How do I remove unwanted user profiles?

Read other answers
RELEVANCY SCORE 72.8

Hello, just one annoying little problem here.

I'm running Windows XP Home (SP1) and recently the computer I'm using became officially "mine", so now I can get rid of other peoples' profiles on here.

All the accounts I'm trying to delete are administrator accounts, and the account I am trying to delete them from is also an administrator account.

I deleted my Dad's profile first, no problem (his was the "owner" account), but now the User Account window locks up (sits and does nothing until I close it and then it says not responding) when I try to delete any other profile. What is the problem here, and how can I delete these accounts?

Thanks for any help you can offer, I couldn't find anyone else who has had this kind of issue before.

A:Can't Delete User Profiles?

Ok First thing - The owner account that you deleted if it was the Adminisrators account you might have a problem.The best thing is this article from Microsoft KBase and please print it out so you have a reference.How To Create and Configure User Accounts in Windows XPhttp://support.microsoft.com/default.aspx?...;279783&sd=techYou will have to have the password for the administrative account (original) on the computer to do any of this.Good luck.

Read other 5 answers
RELEVANCY SCORE 72.8

Just been browsing in relation to a network connectivity problem on another computer, and I found a short program to list User Profiles. I ran it on my laptop and found that I have several User profiles from the hotels I visited on a recent holiday (see below):

User profiles
-------------
All User Profile : corali_rooms pass
All User Profile : Wise_Advice
All User Profile : Tasana2
All User Profile : Safta Residence
All User Profile : chic
All User Profile : Caprioara
All User Profile : Telekom-40BA
All User Profile : HotelDecebal2
All User Profile : CityLuxe
All User Profile : anda3
All User Profile : Guest Rooms 1
All User Profile : SpitiSepposZTE
All User Profile : OTEf37990
All User Profile : KENMAGS
All User Profile : linksys-g
All User Profile : caprioara
All User Profile : BISSER-2

I don't want these now but have no idea how to delete them, and would appreciate some guidance please.

A:How do I delete User Profiles?

those are network profiles > Wireless Network Profile - Delete in Windows 8

Read other 2 answers
RELEVANCY SCORE 72.8

I know how to delet old user profiles, but I am confused as to why my Documents and Settings folder has so many subfolders. Here they are:

12/18/2002 08:27 PM <DIR> .
12/18/2002 08:27 PM <DIR> ..
08/15/2002 06:41 PM <DIR> Administrator.CANADA.008
11/23/2002 12:26 PM <DIR> Administrator.CANADA.009
11/23/2002 12:34 PM <DIR> Administrator.CANADA.010
06/18/2002 04:09 PM <DIR> All Users
08/15/2002 08:13 PM <DIR> All Users.WINDOWS
12/18/2002 08:27 PM 0 dir.txt
12/15/2002 11:02 PM <DIR> Edit System
11/18/2002 08:33 PM <DIR> Home Theater
12/15/2002 11:02 PM <DIR> Home Theater.CANADA
1 File(s) 0 bytes
10 Dir(s) 2,190,696,448 bytes free

I only have two profiles: Edit SYstem and Home Theater. Why Do I have Home Theater and Home Theater.CANADA (Canada is my computers name by the way). Why the .008, .009 and .010 folders under administrator? Now, even beyond what you see, there are more hidden directorys that are .001, .002 etc etc. Why so many folders?
 

A:Delete Old User Profiles

If you change the computer name or delete some of the files in the profile windows automatically creates a new one. What you might want to try is to create a file on the desktop named something unique. Then you can search the desktop folder in each profile folder for the file you made. Then delete all of the directories that are no longer used. Make sure there are no files in them that you need though.
 

Read other 1 answers
RELEVANCY SCORE 72

I run a biy windows XPsp3 machine w/ AMD cpu and 2gigs mem. Machine configuration not relevant here.

I recently reloaded XPsp3 on the machine that has been running XPsp3 for "years." I notice in the System\documents and setting directory that I now have many "users." They include: all users, all users.windows, default user, default user.windows, localservice, localservice.NT authority, Robert (from somewhere in the installation process), Robert Strickland (also from the installation), Robert Strickland.ANTECHOME (computer name during network setup/installation) and Robert~1~str. I also note that the at-the-moment START menu on the screen doesn't correspond to the START menu of any of these "users."

Question:
Can I get rid of any of these "users" and if so how? Can I designate the user name that I want to represent me? And, why doesn't the START menu agree with the START menu as documented under any of the "user" currently listed?

I'd sure like to simplify this installation and, also, understand why this happened. Thanks much.

Niky aka robert
 

A:why multiple user profiles and how to delete them

Hiya Niky/Robert and welcome to TSG.

When you reload (or re-install) the operating system, make sure you`ve previously taken anything off the hard drive that you want to keep and format the drive so that you start with a clean disk.

It sounds like you installed over the top of the existing system without formatting first therefore giving you multiple users.

As it stands, you could go into the User options in Control Panel and delete any that are in there apart from yourself although I reckon you`ll probably only find you and a Guest account in there and a re-install will eventually be the cleanest option when you have the inclination.

Jenny
 

Read other 3 answers
RELEVANCY SCORE 71.2

Here is my log:

Logfile of Trend Micro HijackThis v2.0.2
Scan saved at 12:15:22 AM, on 9/11/2007
Platform: Windows XP SP2 (WinNT 5.01.2600)
MSIE: Internet Explorer v6.00 SP2 (6.00.2900.2180)
Boot mode: Normal

Running processes:
C:\WINDOWS\System32\smss.exe
C:\WINDOWS\system32\winlogon.exe
C:\WINDOWS\system32\services.exe
C:\WINDOWS\system32\lsass.exe
C:\WINDOWS\system32\svchost.exe
C:\WINDOWS\System32\svchost.exe
C:\WINDOWS\system32\spoolsv.exe
C:\WINDOWS\Explorer.EXE
C:\WINDOWS\system32\hkcmd.exe
C:\WINDOWS\system32\igfxpers.exe
C:\Program Files\Java\j2re1.4.2_03\bin\jusched.exe
C:\WINDOWS\stsystra.exe
C:\Program Files\CyberLink\PowerDVD\DVDLauncher.exe
C:\Program Files\Java\j2re1.4.2_03\bin\jucheck.exe
C:\Program Files\Real\RealPlayer\RealPlay.exe
C:\WINDOWS\system32\dla\tfswctrl.exe
C:\Program Files\Common Files\InstallShield\UpdateService\issch.exe
C:\PROGRA~1\MUSICM~1\MUSICM~3\mm_tray.exe
C:\Program Files\McAfee.com\VSO\oasclnt.exe
C:\PROGRA~1\McAfee\SPAMKI~1\MSKAgent.exe
C:\PROGRA~1\MUSICM~1\MUSICM~3\MMDiag.exe
c:\program files\mcafee.com\agent\mcdetect.exe
C:\Program Files\Corel\Corel Photo Album 6\MediaDetect.exe
c:\PROGRA~1\mcafee.com\vso\mcshield.exe
C:\PROGRA~1\mcafee.com\vso\mcvsshld.exe
c:\PROGRA~1\mcafee.com\agent\mctskshd.exe
c:\progra~1\mcafee.com\vso\mcvsescn.exe
C:\Program Files\MUSICMATCH\Musicmatch Jukebox\mim.exe
C:\PROGRA~1\McAfee.com\PERSON~1\MpfTray.exe
C:\PROGRA~1\McAfee.com\PERSON~1\MpfService.exe
C:\PROGRA~1\McAfee.com\PERSON~1\MpfAgent.exe
C:\PRO... Read more

A:I have these files in my %temp% folder JETBBAE.temp and ~DFCA9F.tmp and i cant delete

* Click here to download ATF Cleaner by Atribune and save it to your desktop.
Double-click ATF-Cleaner.exe to run the program.

Under Main choose: Select All

Click the Empty Selected button.
If you use Firefox:
Click Firefox at the top and choose: Select All

Click the Empty Selected button.

NOTE: If you would like to keep your saved passwords, please click No at the prompt.

If you use Opera:
Click Opera at the top and choose: Select All

Click the Empty Selected button.

[*]NOTE: If you would like to keep your saved passwords, please click No at the prompt.

Click Exit on the Main menu to close the program.
 

Read other 1 answers
RELEVANCY SCORE 71.2

Using Vista Ulitimate every time a windows update installs and the computer restarts, I lose all the user profiles. I manage to restore sometimes and not update and other times I just recreate the user profiles.
Any ideas apart from windows 7 because this is becoming a pain.
Thanks for the help.

Read other answers
RELEVANCY SCORE 71.2

Just reformated xp pro and on start up I was logged on as administrater every time I booted up , I have other users on computer and it kept defaulting to the administrater, so I made the fatal error of deleting the administrater profile and now I can't get into any user profile, anyone know of a fix for this problem?
 

A:delete administer log on profile , now can't get into other user profiles

Read other 7 answers
RELEVANCY SCORE 70.4

I need script to clean out my temp folder but only files that aren't hidden
 

A:script delete only items that arent hidden in temp folder

Read other 6 answers
RELEVANCY SCORE 69.6

Hi,
There are systems where users login for general activity and they pile up almost every day. Is there a group policy to delete the local profiles after the user logs off. I came across policies where the profiles are deleted after x number of days or using
delprof.exe or using scripts or remove cached roaming profiles but we do not want to use them.

We want to use only group policies to delete local profiles immediately after the user logs off. Any help would be appreciated.
Thanks,
Nithu

A:Group policy to delete local profiles after user logs off

Hi,
Not Roaming profile? for Local profile, I haven't found a policy to delete it after user logoff, but if what you want to achieve is prevent user saving settings to the desktop, then you can use mandatory user profile instead,.
This profile does not save changes made by the user to the desktop settings. Users can modify the desktop settings of the computer while they are logged on, but none of these changes are saved when they log off. The mandatory profile settings are downloaded
to the local computer each time the user logs on.
http://technet.microsoft.com/en-us/library/gg241183(v=ws.10).aspxYolanda Zhu
TechNet Community Support

Read other 4 answers
RELEVANCY SCORE 66.8

Hi there

Im running win 7 on the main desktop PC and i have different user profiles set up for various family members.

I also run win 7 on my own laptop and xp on another laptop.

I used to run XP on the home pc and vista on my laptop but i have only just started using user profiles since upgrading to win 7

I did have the my docs folder on the home pc shared and i could access files on both the vista and xp machines.

Im not sure if its the win7 upgrade or because ive only just started using profiles but i cant get the individual user files shared now? Ive shared the users folder and it allows me to see 'guest' and 'public' but despite sharing the individual user folders it wont let me access them on either laptops?

any help would be appreciated.

regards

A:how to share files when using user profiles

when you share the users folder, users will have access to their own folder but not access to anyone else's (at least not the private stuff). Unless of course you modify share and folder permissions.

Read other 9 answers
RELEVANCY SCORE 66.8

I am trying to delete user data files and folders from the user profile folder on the server side. I don't know why they are saving to the profile to begin with and they reappear after deleting them from the profile. I removed the files from the documents and settings profile folder on the client and they have not returned, however the server copy of the profile keeps coming back with the user data files and folders. Also wondering what files should be saved to the profile so I don't remove something that should be there.

A:xp profiles have user data files in them

hey, well the profile folder in the server is shared and here user can safe their profile setting known as "roaming profile" if you go to your user then right click and choose properties and it will have some text there about user profile make sure there is nothing written there.

also i don't think you should delete these files because these are used to structure the users background and other settings.

Read other 1 answers
RELEVANCY SCORE 66.8

We currently have a few public computers that anyone of the employees can use while waiting to have thier computer fixed, we have been finding that the Users folder in Vista is getting awefully crowded after a few weeks of this experiment.

We where looking for a way to have a timed script to run on each of these computer at a certain time of day to delete all User accounts on the computer except Public, and our Admin account and shutdown the computers so they would be ready for the next mornings use.

Does anyone have any ideas of how this can be done?

A:Script to Delete Certain User Accounts?

Hi psytae,

Are these computers 32-bit or 64-bit?
For the 32-bit ones, have a look at this: Windows SteadyState

Read other 2 answers
RELEVANCY SCORE 65.2

I?m a new user of Windows 7, just turned it on for the first time a few days ago, but I?m pretty familiar with the setup since I?ve used Vista for over a year now. This Windows 7 machine that I just turned on a few days ago is a new work machine for another employee here at my place of work. I?ve gone ahead and already added it to our domain, and I?ve signed onto it using multiple user accounts that were created in our Active Directory. My question is, how can I go about deleting those Domain User Accounts, Profiles, and Files off of this Windows 7 computer? I?ve already made the mistake of deleting the user folder in the C:\Users folder, just to find out that if I deleted a user and tried to sign back on as that user (thinking it would create a new profile folder in C:\Users), it created a temporary profile.

In the past when using XP all I would normally have to do is delete the user profile folder in C:\Documents and Settings and I was able to sign back in as that user and have a new profile created.

I hope this makes sense!

Thanks

A:Deleting Domain User Accounts, Profiles, and Files

Come on, there has to be an answer to this, or does it simply not make sense!?!

Read other 4 answers
RELEVANCY SCORE 64.8

I got windows vista home premium 32 bit (Japanese)

I noticed in the User Application Data Local Temp Folder there are a lot of items.
What are they can I delete them?
I did use CCleaner some single entries got deleted while others remain there.

Any help in this regard will be appreciated.

A:Items in User Application Data Local Temp Folder should I delete?

Hi Ari94,

Temporary folder is a directory used to hold temporary files. Many operating systems and some software automatically delete the contents of this directory at boot-up or at regular intervals.

You can delete the files from Temp folder. There would be certain files which may not be deleted, this is happens when the files are in use. Please follow detailed instructions to delete the Temp folder: Temporary Files - Temp Folder

Please revert back for clarification.

Read other 6 answers
RELEVANCY SCORE 63.6

A folder lives in C:\documents and settings\owner\local settings\temp.

I need to know what these files and folders do, and if I may delete them safely?

Had a friend who could not install any software on his pc and was advised by the geek squad at Best Buy to try and delete all the contents of this folder. he did and now is able to install software programs again.
I am wondering if you don't need these files why are they there?
Is it safe for everyone to just delete all these files and folders?
Thank-you

Ray
 

A:Delete Temp files

Read other 6 answers
RELEVANCY SCORE 63.6

Trying to help my niece . I was there today and her pc is soooooo slow! She knows nothing about pc's besides email and IM.
First thing I was going to do was to delete all her temp files. Went to start, clicked on run, typed in %temp% and up came
2,049 temp files! Well, duh no wonder it's slow.
I was explaining to her what 'temp files' are. But she doesn't even you the internet.
The first page of her temp file was as follows:
DF1CF4
and when I tried to delete them it said : cannot delete ~~ DF1CF4: It is being used by another person or program.
As I scrolled through the next few pages they seemed to be all alike, maybe a variance of the last two numbers.
There wan no other person using anything, nothing else was open.
Can someone give me some suggestions as to what to do??
Thanks so much
Joyce
 

A:Can't delete temp files.

Read other 7 answers
RELEVANCY SCORE 63.6

i cant delete my windows temp files. When i open the folder to do it manually, the files are gray. i click delete history button and still nothing happens, the files are still there.

please help.

A:cant delete temp files..

Have you tried using the disk cleanup tool?

Read other 7 answers
RELEVANCY SCORE 63.6

Hello, I am trying to delete over 6,000 files that are in a friends Temp folder. One of the files contains a virus. The file is ??erinit.exe , every time I try to even open the Temp folder, IE shuts it down and restarts the profile. They have 3 other profiles on the computer. I am not able to complete a scan in Adaware, AVG antivirus or Spybot. They all stop at this file in her local settings/temp folder and stop responding. I have tried all of these in safe mode under Admin and get the same problem.Does anyone know how I can go into a Dos prompt and delete the Temp folder?They have Windows xp home edition.Thank you for any help you can give.

A:Can't Delete Temp Files

Have you tried any of the online anti-virus - anti-malware scanners?

Are you using the administrator logon when you try to run a virus scan from safe mode?

Read other 7 answers
RELEVANCY SCORE 63.6

I bought my daughter an iPod for Christmas and was trying to install it and the software (iTunes) for it. I ran into trouble installing iTunes, I was getting an error 1406 "Could not write value to Key\Software\classes\.cdda\OpenWithList\itunes.exe". So I went to the Apple forums looking for help. I found a string with steps to try to resolve the issue. It asked me to empty temp folder and restart. There were several items in my daughters temp folder and I was able to delete all of them except for 6 files. Some of these files were in the temps of other profiles on our computer and had no trouble deleting them out of them but for some reason I cannot remove them from my daughters temp folder. Here are the files:

Perflib_Perfdata_144
Perflib_Perfdata_cc
Perflib_Perfdata_648
Perflib_Perfdata_954
Perflib_Perfdata_ae4
Perflib_Perfdata_b2c

When I try to delete them I get a message "Cannot delete Perflib_Perdata_144: It is being used by another person or program"

So I ran AVG, Spybot, and Adaware to make sure they were up to date, and then let them check my computer again. I got an error running Spybot, during the check I got the message:

"There were problems in the include file: C:\Program Files\spybot_Search_Destroy\Includes\Hijackers.sbi"

I wasn't sure if this was related or not so I thought I would meantion it.

The scan result for AVG didn't turn up anything, neither did Adaware or Spybot ot... Read more

A:Cannot Delete Temp Files

You may have the Vx2.Look2me malware. Try running some malware scans. Check in task manager for anything perf running and shut down that processand try deleteing those files again.

I think symantec has a specific look2me removeal tool also

Read other 12 answers
RELEVANCY SCORE 63.6

I have the following Temp folders that I know of:

C:\Windows\Temp
C:\Users\Tim\AppData\Local\Temp
C:\Users\Tim\AppData\LocalLow\Temp
C:\Users\Tim\AppData\Temp

Are the contents of these 'Temp' folders used by the system...or are they left over from operations/installtions...etc.

Is it safe to delete them....contents only...not the folder itself ?

Thanks...TRinAz

A:Are all 'temp' files OK to delete ?

  
Quote: Originally Posted by trinaz


I have the following Temp folders that I know of:

C:\Windows\Temp
C:\Users\Tim\AppData\Local\Temp
C:\Users\Tim\AppData\LocalLow\Temp
C:\Users\Tim\AppData\Temp

Are the contents of these 'Temp' folders used by the system...or are they left over from operations/installtions...etc.

Is it safe to delete them....contents only...not the folder itself ?

Thanks...TRinAz


I recommend that you run the Windows built in Disk Cleanup to delete temporary files. It only deletes temporary files that it knows are safe to delete.

Read other 2 answers
RELEVANCY SCORE 63.6

Is it OK to delete everything in the Temp File box, which appears following the %temp% command. I ask because some are obviously temp files as they have tmp alongside them, but a lot have either Folder or File alongside. Many thanks
 

A:temp files delete

yes, you can. You are better off using disc cleanup with W10 though, rather than manually deleting as some ( lots) won't otherwise delete and disc cleanup removes the database record of files stored in temp. Manual deletion doesn't, so could theoretically cause problems down the line where windows looks for a temp file that it hasn't been told has been deleted
https://support.microsoft.com/en-gb...-996f-99e02c7301c2/disk-cleanup-in-windows-10
 

Read other 1 answers
RELEVANCY SCORE 63.6

 My   C:\users\my_name\appdata\local\temp   folder has 4600+ files in it!  Some going back to 2010.  Since this is a temp folder, can I safely delete the files?   Many of the files have 0 or 1 kb; others are larger, usually the ones ending with .txt.  I'm not hurting for space on my hard drive but keeping 4600 unnecessary files seems ridiculous.  Any advice?

A:Can I delete temp files?

Odds are they won't cause any kind of problem, and it won't hurt anything if you remove them.  Some are simply files used by  installers (logs reporting how things went during the install) or like the name implies a temporary file for whatever reason the software needed to create it.

Read other 8 answers
RELEVANCY SCORE 63.6

Hi all, here's one I haven't seen in the forum before.

I stumbled upon a folder in Win XP Pro under Doc. & Settings\My Name\Local Settings\Temp\Temporary Internet Files\Content IE5 that wasn't cleaned out from the Internet Options Delete Files button. So I tried to delete them manually and succeeded by using the wipe info tool in NAV 2003 Pro, for all but a few. The names all start with Premium_Sites, are like 25 words long (pornographic) and are gif images (no preview just the icon), when I try to delete them I get an error message that says "Cannot Find File Specified". After trying Spybot, AdAware, Panda & RAV online virus scans, Safe Mode & a DOS prompt, I tried putting the drive in another computer to delete them from that OS. It seemed to work, I double checked to see the file in the recycle bin, shut down & put it back in my comp. start up and the files were back, and it's gone from the recyc. bin on the other comp, I put the drive back into that comp and am now getting the same error message from that one Any ideas on what to try next? Thanks in advance.
 

A:Can't Delete Temp Files

Maybe a hijack this log will help. Thanks

Logfile of HijackThis v1.97.3
Scan saved at 5:24:12 PM, on 10/12/2003
Platform: Windows XP SP1 (WinNT 5.01.2600)
MSIE: Internet Explorer v6.00 SP1 (6.00.2800.1106)

Running processes:
C:\WINDOWS\System32\smss.exe
C:\WINDOWS\system32\winlogon.exe
C:\WINDOWS\system32\services.exe
C:\WINDOWS\system32\lsass.exe
C:\WINDOWS\system32\svchost.exe
C:\WINDOWS\System32\svchost.exe
C:\WINDOWS\Explorer.EXE
C:\WINDOWS\system32\spoolsv.exe
C:\Program Files\Common Files\Symantec Shared\ccEvtMgr.exe
C:\WINDOWS\System32\sstray.exe
C:\Program Files\Common Files\Symantec Shared\ccApp.exe
C:\Program Files\Winamp3\winampa.exe
C:\Program Files\Microsoft Hardware\Mouse\point32.exe
C:\Program Files\iPod\Bin\iPodWatcher.exe
C:\Program Files\Tweak-XP Pro\AdBlocker.exe
C:\Program Files\Tweak-XP Pro\popup.exe
C:\Program Files\Common Files\EPSON\EBAPI\SAgent2.exe
C:\Program Files\iPod\Bin\iPodSrv.exe
C:\Program Files\Norton AntiVirus\navapsvc.exe
C:\Program Files\Norton AntiVirus\AdvTools\NPROTECT.EXE
C:\WINDOWS\System32\nvsvc32.exe
C:\WINDOWS\System32\svchost.exe
C:\Program Files\Internet Explorer\iexplore.exe
C:\PROGRA~1\WINZIP\winzip32.exe
C:\Documents and Settings\Frank\Desktop\hijackthis\HijackThis.exe

O2 - BHO: (no name) - {06849E9F-C8D7-4D59-B87D-784B7D6BE0B3} - C:\Program Files\Adobe\Acrobat 6.0\Acrobat\ActiveX\AcroIEHelper.dll
O2 - BHO: (no name) - {AA58ED58-01DD-4d91-8333-CF10577473F7} - c:\program files\google\googletoolbar1.dll
O2 - BHO: (no name) - ... Read more

Read other 3 answers
RELEVANCY SCORE 63.6

When starting Windows XP in Safe Mode with Command Prompt what is the DOS command to delete temp files?

Thanks.

Stuart
 

A:Delete Temp Files

del c:\windows\temp\*.* = (* is for wild character) *.* indicates that you would like to delete all files in the c:\windows\temp directory.
 

Read other 3 answers
RELEVANCY SCORE 63.6

i need help to configure laptop please. keeps opening temporary files need to delete them how do i do it please.
 

A:need to delete temp files

What's your operating system?

Ever tried a program like CCleaner? Just do not use the registry cleaner option!
 

Read other 1 answers
RELEVANCY SCORE 63.6

Good Day.

I think I have a strange one here. My PC is running Windows XP SP1. Intermittent problems here and there that I have resolved.

Currently, I am having difficulty running iolo System Mechanic 6 and adaware. It appears that something in the temp folder (local settings) causes these programs to hang. So, no problem, I can simply go in and delete the contents of the temp folder. However, when trying to access the temp folder, I get the "Windows Explorer has encountered a problem and must shut down error". I have been able to isolate one of 3 IE temp folders this problem is being caused in, but trying to delete the files are impossible. Can't do it in Safe Mode either -- something in this folder is causing other programs that "check" this folder (adware, spyware, system utilities, etc.) to hang.

Sometimes, even clicking on the temp folder causes the explorer error to occur.

The error messages references "unknown" as the error and a location of 00005d31. Don't know if this is important, but....

Any ideas?

Thanks
 

A:Can Not Delete Temp Files

Read other 16 answers
RELEVANCY SCORE 63.6

Hi guys, can't believe I found this board, it's such a relief and really awesome that there are people out there willing to help out complete strangers with this stuff!

Anyway, my computer sounds like it is constantly processing something, and has been running slower than normal for the last little while. I tried deleting my temporary files by doing the process you've outlined (typing in %Temp% and deleting them), but there are some that won't delete. I get a message saying "Cannot delete 3008: Access denied. Make sure the disk is not full or write protected and that the file is not in use." Any ideas?


I also recently had a problem with this trojan or spyware related to "Soft-Safe reviews" that gave false alerts about a Trojan.Zlob.G , but I ran Malebytes, Ad-Aware, and Superantispyware in safe mode which seems to have finally done the trick. I'm only bringing this up because I am wondering if I may still be infected and this is why I can't delete some temp folders?

Thanks!

A:Can not delete some Temp files

Yes you could still be infected or the infections changed around some things in your system registry....


first go here;
http://support.microsoft.com/kb/322756


Then you might want to try ccleaner;
http://www.ccleaner.com/download

Read other 5 answers
RELEVANCY SCORE 63.6

I have diskcleaner installed and it cleans out histories, URLs, etc.. and it says temp files but it doesn't do that.

Everytime I get an e-mail with an attachment I open the attachment and want to save it to a folder in my documents folder it see the default location as OLK1. This file is full of old attachments.

I've tried going into Windows explorer but can't find this folder anywhere, (even after asking for all hidden files to be seen). I've type a search for *.tmp files to delete them but the search comes up with nothing.

How do I clean out the temp files on my XP machine? Thanks for any info.
 

A:How to delete temp files

Read other 8 answers
RELEVANCY SCORE 63.6

I have no idea what is up! I have no access to user profiles, search doe not work. Cannot access hardware settings. I have no viruses or infections. I don't know where to start! I get crackling from my speakers. What is going on? My desktop is possessed!

Dell Dimension Desktop 4700
Windows XP Media
Please someone rescue me.
 

A:Solved: No access to user profiles, hardware profiles, search.. something is really wrong!

Read other 16 answers
RELEVANCY SCORE 63.2

I did disk cleanup, and it says i have 50 GB in temporary files and when i cleaned it in admin mode, it didnt delete.

Iv tried multiple times and it wont delete.

Any Ideas on how to delete it?

PS: 10 GB of that is the folder in my other topic Random folder cant delete

A:50 GB of temp files wont Delete

  
Quote: Originally Posted by cclloyd9785


I did disk cleanup, and it says i have 50 GB in temporary files and when i cleaned it in admin mode, it didnt delete.

Iv tried multiple times and it wont delete.

Any Ideas on how to delete it?

PS: 10 GB of that is the folder in my other topic Random folder cant delete


Attachment 61501


Try downloading and running CCleaner. It specializes in this and has other tools as well: CCleaner - Home

Read other 9 answers
RELEVANCY SCORE 63.2

my temp internet files folder is geting huge...when i tell it to delete all that in there the window freezes and i have to ctl alt del....there are certain files in the folder that will delete and some that wont...any idea's?

A:Can't Delete Temp Internet Files

Try using a program such as Cleanup!

Read other 7 answers
RELEVANCY SCORE 63.2

I have read I guess all over the net how to delete temp internet files, I have tried everything inc CCleaner nothing seems to work, and I notice that people have written from about august 2015.

Am using a new dell xps 8900 desktop with win 10 pro, am I right to think there is no none workaround unless you reinstall win 10 ????.

or is there something one can suggest to assist me

Thanks
Tony

A:Delete Temp Internet Files

Tried Disk Cleanup ?

Read other answers
RELEVANCY SCORE 63.2

I have read I guess all over the net how to delete temp internet files, I have tried everything inc CCleaner nothing seems to work, and I notice that people have written from about august 2015.

Am using a new dell xps 8900 desktop with win 10 pro, am I right to think there is no none workaround unless you reinstall win 10 ????.

or is there something one can suggest to assist me

Thanks
Tony

A:Delete Temp Internet Files

Tried Disk Cleanup ?

Read other 1 answers
RELEVANCY SCORE 63.2

I am unable to delete certain temporary files from CD burn

Problem seems to be with Illustrator ai and eps files.

Tried re-booting, closing all apps and have even deleted original files from directory, but still recieve error message indicating files are in use when I try to delete them.

Any insight would be greatly appreciated.
 

A:Can't delete CD burner Temp files

Download a copy of Process Explorer. Link can be found on this page: http://support.microsoft.com/kb/q232830/
When you run it, all running processes will be shown in the top pane, and the files and keys for each process in the bottom pane. You can look for that file in the bottom panes or go to 'Find', 'Find Handle', and enter the name of the file in the 'Handle or Type' box.
Hope this helps.
moper
 

Read other 2 answers
RELEVANCY SCORE 63.2

Hellows.
For the last two days. The temp files have not been deleting all of the way. I' am not admin of this computer either. So. Hopefully there is a solution I can do without harming this computer. I have also read that temp files can be stored on the computer for a week. Do you think after a week, the temp files will be gone? I'm starting to think my ie10 may be corrupted, too. I've had nothing but issues within' the last month with ie10. The link is a screen shot. Any help is appreciated. Thank You

Image - TinyPic - Free Image Hosting, Photo Sharing & Video Hosting

A:Temp files will not delete in IE10

Welcome to Seven Forums grungychick. Your screenshot show you have no Temporary internet files. You have Temporary files. Temporary files come from different applications on your PC. At the time you took that shot, your internet files were indeed deleted.

Delete Windows 7 temporary files and recover real estate.

A Guy

Read other 9 answers