Skip to content

How to Delete Files by System and TrustedInstaller

  • by
Screenshot of Folder Access Denied message preventing the deletion of files owned by system and trustedinstaller

System and program installers sometimes leave behind unnecessary files. As a result, you lose precious disk space taken up by these files. Moreover, if you try to delete them, they simply refuse to be deleted. Therefore, I will show you how to delete these files left behind by System, TrustedInstaller, and others.

The reason why you cannot delete these files is two-fold. First, you do not own these files or directories. And second, you do not have the proper permissions. In other words, owning the files and directories and having explicit permissions are both needed. Later on, this should become clear as we go along with the example.

In the following example, we will be working with a folder or directory. This should show the concept and the necessary procedures. A similar procedure should work when it comes to deleting a single file.

Step One – Open the folder’s Properties window

Open the folder’s Properties window. First, right-click on the folder. Then select Properties at the bottom of the context menu.

Screenshot image of Windows 10 file and folder context menu showing the option Properties for changing settings to delete files owned by system and trustedinstaller

Step Two – Open the Advanced Security Properties

The screenshot below shows the folder’s Properties windows. First, click on the Security tab. Then, click on the Advanced button.

The Properties window annotated to show how to open the Advanced Security Settings to be able to delete files belonging to system, trustedinstaller and others

Step Three – Change the folder’s ownership

Please examine the image below. The Advanced Security Settings shows the folder is own by SYSTEM. This is the main reason that prevents us from deleting the folder. Therefore, we need to change the ownership of the folder.

Click on Change link. The link will open the Select User or Group window.

Image of the Advanced Security Settings of Windows 10 file manager for changing settings to delete files created and owned by system and trustedinstaller

On the Select User or Group window, type your Windows username in the Enter the object name to select text box. Then, click on the Check Names button.

The Select User or Group window for entering the username in changing the ownership of files to facilitate deletion of files left behind by system, trustedinstaller. and other users

After clicking the Check Names button, it replaces the username with its full name. That is, it prefixes the username with the computer name. See the screenshot image below.

Another screenshot picture of the Select User or Group window to change file ownership as a prerequisite to deleting files created by system, trustedinstaller, and other users

If Check Names successfully found the entered username, click the OK button.

You will be back to the Advanced Security Settings window. Take note that the Owner field has been replaced. First, tick the Replace owner on subcontainers and objects. Next, also tick Replace all child object permission entries with inheritable permission entries from this object. Finally, click Apply button.

An annotated screenshot of the Advanced Security Settings showing how to tick the options needed to successfully delete files protected by system, trustedinstaller, and other users

When a Windows Security message appears, click on the Yes button.

A message from the Windows Security about replacing permissions, a necessary step in the deletion of files generated by the system, trustedinstaller, and other users

Another Windows Security message appears. This message is a reminder to close all the windows we have opened so far before making any permission changes. Click the OK button.

Another message from the Windows Security reminding to close and reopen the properties windows before changing permissions

After clicking the OK button, the message window disappears. Now, we are back to the Windows Security Settings window. Again, click the OK button to close this window.

Screenshot of Advanced Security Settings annotated to close the window by clicking on the OK button

When the Advanced Security Settings window closes, we are back to the folder’s Properties window. Again, close the Properties window by clicking on the OK button.

The Windows 10 File Manager Properties window with the OK button annotated

Step Four – Change the folder’s permissions

In Step Three, we have taken ownership of the folder named system. Next, we need to change the folder’s permission settings.

First, open the folder’s Properties windows as was done in Step One. Then, open the Advanced Security Settings window as shown in Step Two above. On the Advanced Security Settings window, click the Add button.

The Advanced Security Settings showing how to change the permissions to be able to delete files owned by system, trustedinstaller, and other users

After clicking the Add button, the Permission Entry window shows up. Click on the Select a principal link.

Permission Entry window for entering the username needed for changing the permissions to let the user delete files owned by system, trustedinstaller, and other users

Step 4 Continuation

Clicking on the Select a principal link will open the Select User or Group window. As previously done in Step Three above, type your Windows username in the text box. Then, click on the Check Names button. Finally, click on the OK button to close the Select User or Group window.

A well-annotated screenshot of the Select User or Group window

We are back to the Permission Entry window. Verify that the Principal field has been changed to your username. Then, place a check mark on Full Control. Ticking the Full Control permission will tick all the basic permissions, except the grayed Special permissions. Lastly, click on the OK button.

The Permission Entry window showing how to change the basic permissions to full control to give the user the ability to delete owned by system, trustedinstaller, and other users

When the Permission Entry window closes, we are back to the Advanced Security Settings window. Confirm that your username is now listed in the Permission entries. Moreover, the permission Type, Access, and Applies to values must be Allow, Full Control, and This folder, subfolders, and files respectively. If everything is in order, click the Apply button. Then, click the OK button.

Screenshot of the Advanced Security Settings showing the completed permission entry for deleting files created and owned by system, trustedinstaller, and others

After clicking the OK button of the Advanced Security Settings window, the window should close and bring us back to the folder’s Properties window. Click the OK button on the Properties window. The Properties window closes, concluding the procedure for setting the folder’s permissions.

The screenshot of the final window in the procedure for changing the folder's ownership and permission to allow a user to delete files and folders owned by system, trustedinstaller, and other users

Now, after completing the procedures above, try deleting the folder. And hopefully, the folder gets deleted straight away like any other ordinary folder.

Summary on How to Delete Files by System and TrustedInstaller

To delete files and folders owned by the System, TrustedInstaller, and others, you must first take ownership of the files and folders. Then change the required permissions to Allow and Full Control.

Related Articles on How to Delete Files by System and TrustedInstaller

Default Username and Password of PLDT Routers 2019
Default Username and Password of Globe Router

References on How to Delete Files by System and TrustedInstaller

www.microsoft.com

Leave a Reply

Your email address will not be published. Required fields are marked *