TEMP directory in Windows 7

Anonymous
2019-12-01T04:27:40+00:00

My netbook had 284G storage.  241G is taken up by the directory C:/windows/temp

I'm running Windows 7.  Can I safely delete the files and sub-directories in the TEMP directory to regain some storage space?  Most of the files are named cab_xxx_xx with 80% empty files, the other 20% are 71M in size.

Windows for home | Previous Windows versions | Files, folders, and storage

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes
Answer accepted by question author
  1. Anonymous
    2019-12-01T19:51:33+00:00

    Yes, they can, and should be, deleted periodically.

    The temp folder provides workspace for programs. Programs can create temporary files there for their own temporary use. Each program should delete all its temporary files when it closes, but for various reasons it doesn't always happen (for example, if the program crashes, it never gets to do this). That's why it's a good idea to periodically clean out anything left there.

    Also note that there are some program installations which work in two steps. The first step concludes by writing temporary files and rebooting. The second step starts automatically after rebooting and needs to find those files there (and then deletes them when it's done).

    Other than doing it automatically when rebooting (that would interfere with installations like the kind I described), it's always safe to delete the contents of the temp folder. Because it's safe to delete any temp files that aren't open and in use by an application, and since Windows won't let you delete open files, it's safe to (try to) delete them at any time. If any fail to delete because they're open, they'll either be deleted automatically when the app using them closes, or you'll get them the next time you delete manually.

    Some people may suggest that you reboot before deleting anything, but that's not necessary, for the reason described above (on the other hand, it doesn't hurt to do it).

    4 people found this answer helpful.
    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Anonymous
    2019-12-05T03:30:23+00:00

    Thanks ElderN.  I have exactly the problem in the article.

    0 comments No comments
  2. Anonymous
    2019-12-05T03:31:12+00:00

    Thanks Ken.

    0 comments No comments
  3. Anonymous
    2019-12-05T15:25:56+00:00

    You're welcome. Glad to help.

    0 comments No comments