Cannot delete TEMP-files

Trond Gunnar Raa 125 Reputation points
2025-04-05T14:31:06.61+00:00

I discovered today that some large files have appeared in the "TEMP" folder that cannot be deleted. (Some are VDM files). When I try to delete the folder, I get the message "You need permission from SYSTEM to make changes to this folder". Does anyone have any idea how this folder can be deleted? Skjermbilde 2025-04-02 233545

Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

Accepted answer
  1. Marcin Policht 49,640 Reputation points MVP Volunteer Moderator
    2025-04-05T17:46:44.88+00:00

    Refer to https://answers.microsoft.com/en-us/windows/forum/all/deleting-files-that-need-system-permission-and/745cd398-ae14-4cd5-91a6-86f8bffae6a1

    The easiest solution would be to take Ownership of the files\folders in question and add yourself as a USER with Full Permissions..

    Change Ownership and add Name as a USER

    Select Security Tab and then ADVANCED at the bottom.

    Here you can edit the permissions for existing users and\or add another..

    Click "CHANGE" next to Owner at the top of the window...

    Select...

    1) Advanced

    2) Find Now

    3) Select User from list...Your user name, or any you want to add.

    4) check the box "Replace Owner On Subcontainers and Objects"

    5) Hit "Apply"

    Close out of all of the open windows and start over with the Advanced button...

    1) select "ADD" near the bottom

    2) select "Select A Principal" at the top...

    3) Advanced

    4) Find Now

    5) Select User from list...Your user name, or any you want to add.

    6) Give the new user\owner full permissions... 

    7) Do Not check the box "Include Inheritable Permissions From This Object's Parent""

    8) Select "Apply"...

    Next, try deleting the folder again


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Trond Gunnar Raa 125 Reputation points
    2025-04-06T00:37:10.39+00:00

    The problem has solved itself without me needing to try the information I received here. For some reason, this folder disappeared from temporary files.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.