Delete Read Only Files

In some cases, you may have difficulty deleting a file from your PC or Mac because the file is classified as Read Only. By changing the file attributes, you can easily delete Read Only files in Windows or Mac OS X.

Steps

Use the Properties Menu to Eliminate the Read Only Attribute

  1. Right-click the file in Windows Explorer.
  2. Choose "Properties" from the drop-down menu.
  3. Uncheck the box next to the "Read Only" option in the "Properties" menu.
    • If the box is checked and grayed out, either the file is in use or you don't have permission to change it.
    • Quit any programs that are using the file. If needed, login as an administrator to gain permission to alter the file.
  4. Delete the file.

Use the Attrib Command to Turn Off the Read Only Attribute

  1. Click Start and select Run. If you don't see the Run command, then click All Programs > Accessories > Run.
  2. Remove the Read Only attribute and set the System attribute. Type the following command:
    • attrib -r +s drive:\<path>\<foldername>
    • For the test folder, for example, type attrib -r +s c:\test
  3. Delete the file.

Delete Read Only Files in Mac OS X Using Finder

  1. Open Finder. Find the file that you want to delete and click to highlight it.
  2. Click File at the top of the Finder menu, then select Get Info.
  3. Select the "Privilege" option in the Sharing & Permissions section.
  4. Click on the box next to "Owner."
  5. Set the file to Read & Write status.
  6. Delete the file

Delete Read Only Files in Mac OS X Using Terminal

  1. Select Applications > Utilities > Terminal.
  2. Type cd <directory>. For example, if you want to adjust permissions for a file in your documents folder, then type cd Documents.
  3. Input the command ls -l to view the directory contents in long form. Permissions are displayed on the far left column.
  4. Type chmod u+rwx "filename" to grant read, write and execute permissions. Close Terminal.
  5. Find and delete the file.

Tips

  • For Mac OS X, you can set file permissions for entire groups. "Read Only" files can changed and deleted by other users on your network if you give them the access to do so.
  • If you are still unable to delete a Read Only file on a Windows computer, try a utility program such as MoveOnBoot, Delete FXP Files, Delinvfile or Unlocker.

Warnings

  • Deleting certain Read Only files may cause certain programs not to function properly. Be sure to research what the file does before you decide to delete it.

Things You'll Need

  • PC or Mac
  • Windows or Mac OS X

Sources and Citations