Windows 10: How do i create a policy to run automatically some tasks like deleting temp, %temp% etc ?

Discus and support How do i create a policy to run automatically some tasks like deleting temp, %temp% etc ? in Windows 10 Gaming to solve the problem; Dear Community members How do i create a policy to run automatically some tasks like cleaning temp, %temp% , %appdata% prefetch and cleanmgr among... Discussion in 'Windows 10 Gaming' started by Ananda Mohite, Sep 7, 2023.

  1. How do i create a policy to run automatically some tasks like deleting temp, %temp% etc ?


    Dear Community members How do i create a policy to run automatically some tasks like cleaning temp, %temp% , %appdata% prefetch and cleanmgr among others. generally i do this once a week after adding and removing new programs but the trash data gets accumulated. Storage sense is a good option but i need more efficient solution.if i just could automate this task that will make things much easier.Appreciate the help.

    :)
     
    Ananda Mohite, Sep 7, 2023
    #1
  2. Ken Blake Win User

    Is it safe to delete the Temp folder in C:/Windows/Temp?

    Yes, all *files* in the temp folder (not the folder itself) 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).
     
    Ken Blake, Sep 7, 2023
    #2
  3. These temp files will not delete

    Hi Jeffrey,

    Thank you for your interest in Windows 10.

    We understand that, you are unable to delete temp files on Windows 10 and I'd be certainly help you.

    For a better understanding of your issue, answer the query below:

    • Do you receive any prompt or error code?
    • What happens, when you try to delete temp files?
    I suggest you to follow these methods below and check, if it works:

    Method 1:

    • Press Windows key + R key together, to open RUN command Window.
    • Type "temp" in the RUN Command Window, to open temp folder and then delete the files and folders inside the temp folder.
    If the issue persists, follow method 2.

    Method 2:

    • Press Windows key + R key together, to open RUN command Window.
    • Type "%temp%" in the RUN Command Window, to open temp folder and then delete the files and folders inside the temp folder.
    If the issue persists, follow method 3.

    Method 3:

    I suggest you to boot the computer to Safe Mode, then perform disk cleanup on Windows 10 and check, if it works.

    I suggest you to refer the article and check, if it helps.

    Windows Startup Settings (including safe mode):

    http://windows.microsoft.com/en-us/windows-10/change-startup-settings-in-windows-10#v1h=tab01

    Let's try to perform disk cleanup on Windows 10 and check, if it works.

    Disk cleanup in Windows 10:

    Disk cleanup in Windows - Microsoft Support

    Please feel free to contact us, if you face any issues with Windows.



    Thank you.
     
    AntonyJose, Sep 7, 2023
    #3
  4. How do i create a policy to run automatically some tasks like deleting temp, %temp% etc ?

    Temp Files : Runaway Creation

    Hello Bruce,

    Windows Temporary files are created by the operating system during the normal course of its running when there may not be enough memory allocated for the task.

    I suggest you to follow the steps below to delete temporary files nad check if it helps:

    Step 1

    • Press Windows key + R
    • Type temp and click OK
    • Press Ctrl + A and click Delete


    Step 2

    • Press Windows key + R
    • Type %temp% and click OK
    • Press Ctrl + A and click Delete

    Step 3

    • Press Windows key + R
    • Type prefetch and click OK
    • Press Ctrl + A and click Delete

    Get back to us, if you have further queries. We will be glad to help you.
     
    Anju Thekkethil, Sep 7, 2023
    #4
Thema:

How do i create a policy to run automatically some tasks like deleting temp, %temp% etc ?

Loading...
  1. How do i create a policy to run automatically some tasks like deleting temp, %temp% etc ? - Similar Threads - create policy run

  2. How do i create a policy to run automatically some tasks like deleting temp, %temp% etc ?

    in Windows 10 Software and Apps
    How do i create a policy to run automatically some tasks like deleting temp, %temp% etc ?: Dear Community members How do i create a policy to run automatically some tasks like cleaning temp, %temp% , %appdata% prefetch and cleanmgr among others. generally i do this once a week after adding and removing new programs but the trash data gets accumulated. Storage sense...
  3. delete a temp file

    in Windows 10 Gaming
    delete a temp file: i need to delete a temp file when we go inSETTINGS>STORAGE>TEMPORARY FILERS> AT BOTTOM THERE IS AN UPDATE THING I NEED TO DELETE IT DONE IT PRIOR BUT FORGOT HOW TO DO IT https://answers.microsoft.com/en-us/windows/forum/all/delete-a-temp-file/2bdc3ccf-9129-479d-a8f1-9ecfc30f7121
  4. Files getting automatically deleted in Temp folder

    in Windows 10 Network and Sharing
    Files getting automatically deleted in Temp folder: Specs:Windows 10 Pro, version 21H2, OS build 19044.2364.Storage Sense is turned off.No 3rd party virus scanners or disk cleanup software installed.Issue: Majority of files in system temporary directory i.e. the path the environment variables TEMP and TMP are pointing to,...
  5. Files getting automatically deleted in Temp folder

    in Windows 10 Gaming
    Files getting automatically deleted in Temp folder: Specs:Windows 10 Pro, version 21H2, OS build 19044.2364.Storage Sense is turned off.No 3rd party virus scanners or disk cleanup software installed.Issue: Majority of files in system temporary directory i.e. the path the environment variables TEMP and TMP are pointing to,...
  6. Files getting automatically deleted in Temp folder

    in Windows 10 Software and Apps
    Files getting automatically deleted in Temp folder: Specs:Windows 10 Pro, version 21H2, OS build 19044.2364.Storage Sense is turned off.No 3rd party virus scanners or disk cleanup software installed.Issue: Majority of files in system temporary directory i.e. the path the environment variables TEMP and TMP are pointing to,...
  7. Delete Temp files

    in Windows 10 Gaming
    Delete Temp files: Hell I press window key plus R then temp and also %temp%. Then with each folder O do control A, the items highlight but access is denied to a bunch of the folders What should I do? Thanks...
  8. %temp% not opening in run

    in Windows 10 Gaming
    %temp% not opening in run: i already tried sfc /scannow it did not fix, it keeps asking me what app to open with https://answers.microsoft.com/en-us/windows/forum/all/temp-not-opening-in-run/3f293b8e-fcb2-4e3d-8411-7ba0358df10a
  9. %temp% not opening in run

    in Windows 10 Software and Apps
    %temp% not opening in run: i already tried sfc /scannow it did not fix, it keeps asking me what app to open with https://answers.microsoft.com/en-us/windows/forum/all/temp-not-opening-in-run/3f293b8e-fcb2-4e3d-8411-7ba0358df10a
  10. I created one temp folder and windows 10 deleted this folder automatically!

    in Windows 10 Network and Sharing
    I created one temp folder and windows 10 deleted this folder automatically!: it's weird but after several times i find out that Windows 10 deleting all folders with "temp" name automatically. The last times for me was 1 hour ago that I used hibernating to turn off my pc. After turned it on, my temp folder was deleted by window 10. Windows 10 doesn't...