*

Now and then, the is a an excellent idea come clean up her drives and also delete duplicate photos, documents, momentary files, shortcuts, videos, or other unneeded or unused papers or folders. The procedures to delete a computer file, directory, or folder vary on the method you want to use and your operation system. To proceed, pick from the perform of alternatives below and also follow the instructions.

Anda sedang menonton: Cara menghapus file di local disk c


How to delete papers in Microsoft Windows

Microsoft home windows users have the right to delete one unwanted document or folder (directory) from a tough drive or external disk drive penampilan many different methods. Below are the much more common methods for deleting a document or folder in Microsoft Windows.


Note

Users not familiar with Windows must realize that if friend delete a folder or directory, all files and also folders in the folder or magazine are deleted.


Tip

The steps below are for deleting a single record or folder. However, the user deserve to use the same actions to delete multiple records or folders. For tolong with picking multiple files, see: exactly how to pick or menonjol multiple files and folders.


Delete key

Locate the jadwal acara you desire to delete, menonjol it by left-clicking the record or folder v your mouse once, and tekan ke bawah the Delete key. You can browse the location of the file or folder penampilan My computer or windows Explorer.


Tip

You have the right to delete multiple papers or folders through holding dibawah the Ctrl key and clicking each paper or folder sebelum pressing Delete.


Tip

You deserve to hold dibawah the change key kapan pressing the Delete an essential to prevent papers from going to the Recycle Bin once deleted.


*

Delete document or folder by right-clicking

Open My computer system or windows Explorer. Us recommend girlfriend make certain the magazine or folder is empty before proceeding, uneven you intended to delete everything in it. Find the paper or folder you want to delete and also right-click it. Choose the Delete choice from the pop-up menu.

How to delete from the regional disk


Important

The neighborhood disk contains files and also folders that room imperative for your computer system to operation correctly. Unless you know what you room deleting, please execute not delete any kind of files from this section.


Open My computer system or windows Explorer. On the left next of the screen, click This PC. Top top the best side that the screen, locate and also double-click the neighborhood disk (usually C: or D:). Double-click the folder comprise the file you want to delete. Select the file or folder you desire to delete, click File in the top food selection bar, and also select Delete.

How to delete from an external drive

To delete from a USB flash drive, floppy drive, storage card, or outside hard drive, open My computer system or windows Explorer. ~ above the left side of the screen, click This PC. On the best side the the screen, locate and also double-click the drive, i beg your pardon is labeled together USB, flash drive, external hard drive, or the manufacturer"s name. Choose the paper or folder you want to delete, click File in the top food selection bar, and select Delete.

Delete indigenous the paper menu

Open My computer system or windows Explorer. Locate and select the record or folder you desire to delete, click File in the top food selection bar, and also select Delete.


Tip

If the file menu is no visible in My computer or home windows Explorer, tekan ke bawah the Alt crucial to do the menu batang visible, consisting of the paper menu.


Problems during delete

Some documents and folders may be defended from deletion v encryption or password protection. In this case, you might be asked for a password to decrypt or remove the password protection.

A paper may be set as read-only, meaning the user deserve to only open up it for viewing and not modify or delete it. As soon as trying come delete a read-only file, you obtain a blog post stating the record is write-protected and also cannot be deleted. You have to modify or create permissions come delete the file.

Some papers may only be deleted with administrator permissions. Come delete these files, you would require to have actually administrator benar on the computer. If friend are melihat a occupational computer, the keahlian support staff regularly are the only users through administrator rights on the computer.

Another possible cause of troubles with deleting a document or folder is a virus or malware infection. Viruses and also malware have the right to prevent documents or folders from gift modified or deleted. If this is the case, you should remove the virus or malware infection to delete the affected document or folder.

Windows command line

See the MS-DOS and also Windows command line section below for information about deleting a document or folder in ~ the home windows command line.

Uninstalling a program

See our uninstalling a program steps for membantu with uninstalling (deleting) software program programs native the computer.

How to gain back a deleted paper or folder

If you"ve turned off a record by mistake, you have the right to see our halaman on just how to regain a deleted document for further information ~ above recovering a deleted file.

How come delete documents in MS-DOS and the home windows command line


Note

Keep in psychic that any type of deleted record or brochure in MS-DOS is not sent out to the home windows Recycle Bin.


Before you follow any of the steps below, friend must get to one MS-DOS note or the home windows command line. If you are brand-new to the command line, girlfriend may also want to read through the complying with pages first.

*

Files

MS-DOS users can delete files lihat the del command. Watch this halaman to get additional information and membantu with this command. Below is an instance of just how to usage this command.

del example.txtAs checked out in the example above, as soon as deleting a file, you require to go into the full file name, consisting of the file extension.


Tip

The del command have the right to delete any kind of file.


Delete many files

You can also use wildcards to delete multiple records or a group of files, as presented in the example below.

del *.txtIn the example above, this command would certainly delete every text papers that finish with a .txt record extension.


Tip

The del command deserve to delete any record extension.


Directory

MS-DOS users deserve to delete directories (dir) in MS-DOS penampilan the deltree command or rmdir command. See either the these web links for added information around these commands. Below is an example of how to use this.

rmdir example
NoteIf the directory is full or has actually other subdirectories, you get an error message. To delete a penuh directory, you should use a switch v the above example. For example, "rmdir example /s" to eliminate a jenuh "example" directory. Watch our deltree command or rmdir command for added examples and also switches.


Deleting a subdirectory

To delete a subdirectory, subfolder, folder within a folder, or catalog within a directory, usage a command comparable to the example below.

rmdir example estIn the example above, the "test" directory in the "example" catalog is deleted. Friend could tambahan use the cd command to readjust the directory to the example magazine and then delete the "test" directory using our very first example shown above.

How to delete a brochure or record name through a space

To delete a directory or paper name with a space in the name, you need to surround the catalog or record name through quotes, as presented below.

del "my instance file.txt"rmdir "my example directory"In the above examples, we space deleting the document named "my instance file.txt" through quotes surrounding the complete file name and extension and also removing the "my instance directory" directory.


Tip

The rmdir command can delete any file.


How to delete documents in Linux, Unix, and also other variants

*

Files

Linux and Unix users have the right to delete files through the console lihat the rm command. View this page for extr information about this command. Listed below is an example of just how to usage this command.

rm example.txtAs seen in the instance above, as soon as deleting a file, you require to enter the penuh file name, including the record extension.


Tip

The rm command can delete any kind of file.


Delete lot of files

You can also use wildcards if you want to delete multiple files, as presented in the instance below.

rm *.txtIn the example above, this command would certainly delete all papers with a .txt document extension.


Tip

The rm command can delete any document of document extensions.


Directory

Linux and Unix users deserve to delete folders with the console through the rmdir command. See this halaman for extr information about this command. Below is an example of just how to use this command.

rmdir example
TipLike Microsoft Windows, through Linux and Unix, friend can also delete papers through the GUI through locating the document and pushing the delete an essential on the keyboard.


Deleting a subdirectory

To delete a brochure in another directory (subdirectory), usage a command similar to the instance below.

rmdir example estIn the example above, the "test" brochure in the "example" directory would be deleted. Girlfriend could juga use the cd command to readjust the brochure to the example brochure and kemudian delete the "test" directory lihat our first example presented above.

How come delete a catalog or record name v a space

To delete a magazine or document name with a an are in the name, you should surround the directory or paper name with quotes, as presented below.

rm "my instance file.txt"rmdir "my instance directory"In the examples above, we space deleting the record named "my instance file.txt" v quotes surrounding the complete paper name and also extension. We are juga removing the "my example directory" directory.


Tip

The rmdir command can delete any file.


How to delete documents on macOS

Apple macOS users can delete photos, documents, or other documents or folders (directory) on milik mereka Mac penampilan many different methods. Below are the much more common methods for deleting a record or folder.


Note

Users not familiar with apologize macOS should realize that it deletes all the documents in a folder if you delete that folder.


Tip

The steps below are for deleting a single document or folder. However, friend can use the same steps to delete multiple papers or folders if you choose several documents or folders first. See: exactly how to pick or highlight multiple files and also folders.


Delete key

The delete an essential on the key-board by itself melakukan not delete a paper or folder top top macOS. To delete a record or folder, press and hold Command, kemudian press the delete key. You can browse to the place of the record or folder melihat Finder.

Right-click and choosing move to Trash

Open Finder, situate the paper or folder you desire to delete, and also right-click the paper or folder. In the right-click food selection that appears, click the Move come Trash option.

Delete indigenous the record menu

Open Finder, locate and also select the record or folder you desire to delete. Click File in the peak menu bar and choose Move come Trash.

Terminal

To delete records or directories in the Terminal command line, use the rm command.

How to delete documents on Microsoft windows 3.X

File Manager

Locate the folder or record you desire to delete, then click File and Delete.

Lihat lainnya: Klasemen Kualifikasi Piala Asia U23 2018, Kualifikasi Piala Asia U

MS-DOS

See the MS-DOS user section above for information about deleting a brochure in MS-DOS.