4 ways to delete read-only files

Table of contents:

4 ways to delete read-only files
4 ways to delete read-only files
Anonim

In some situations, you will have problems deleting a file from your PC or Mac computer because that file will be configured as "Read Only". By changing the attributes of the file, you can very easily delete "Read-only" files under Windows or Mac OSX.

Steps

Method 1 of 4: Use the Properties menu to remove the Read-only attribute

Delete Read Only Files Step 1

Step 1. Right click on the file in Windows Explorer

Delete Read Only Files Step 2

Step 2. Click Properties from the drop-down menu

Delete Read Only Files Step 3

Step 3. Uncheck the box next to the "Read only" option in the "Properties" menu

  • If the box is checked and grayed out, it means either the file is in use, or you do not have permission to edit it.
  • Close all programs that are using the file. If necessary, log in as administrator to get permission to edit the file.
Delete Read Only Files Step 4

Step 4. Delete the file

Method 2 of 4: Use the Attrib command to turn off the Read-only attribute

Delete Read Only Files Step 5

Step 1. Click on the Start menu and then click on Run

If you don't see the "Run" command, click All the programs > Accessories > Execute.

Delete Read Only Files Step 6

Step 2. Remove the "Read-only" attribute and set the "System" attribute

Type the following command:

  • attrib -r + s drive: \
  • For example, for a folder called "test", type attrib -r + s c: \ test
Delete Read Only Files Step 7

Step 3. Delete the file

Method 3 of 4: Delete Read-Only Files in Mac OS X Using Finder

Delete Read Only Files Step 8

Step 1. Open Finder

Find the file you want to delete and click on it.

Delete Read Only Files Step 9

Step 2. Click File at the top of the Finder menu, then click Read the information.

Delete Read Only Files Step 10

Step 3. Choose the "Privilege" option in the "Sharing and permission" section

Delete Read Only Files Step 11

Step 4. Click the box next to “Owner”

Delete Read Only Files Step 12

Step 5. Set the file state to "Read & Write"

Delete Read Only Files Step 13

Step 6. Delete the file

Method 4 of 4: Delete Read-Only Files in Mac OS X Using Terminal

Delete Read Only Files Step 14

Step 1. Click on Application > Utilities > Terminal.

Delete Read Only Files Step 15

Step 2. Type "cd"

For example, if you want to configure permissions for a file in your Documents, type "cd Documents".

Delete Read Only Files Step 16

Step 3. Enter the command “ls –l” to view the contents of the folder in detail

Permissions are displayed in the far left column.

Delete Read Only Files Step 17

Step 4. Type "chmod u + rwx" filename "" to allow read, write and execute rights

Close the Terminal.

Delete Read Only Files Step 18

Step 5. Find the file and delete it

Advice

  • In Mac OS X, you can set permissions for an entire group of files. "Read-only" files can be edited and deleted by other users on your network if you give them permission.
  • If you still cannot delete a "Read-only" file on your Windows computer, try utilities such as MoveOnBoot, Delete FXP Files, Delinvfile, or Unlocker.

Popular by topic