• Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
AnonyViet - English Version
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
AnonyViet - English Version
No Result
View All Result

Command to find and delete all files with any extension (extension) on Windows and Linux

AnonyViet by AnonyViet
January 27, 2023
in Network
0

Yesterday a friend asked AnonyViet how to delete all files with extension *.abcxyz? Suddenly her computer appeared some files with strange extensions? Of course there is, but not deleting by clicking from the file that we will use the command. If you have a case that you want to delete all files with the same extension (extension) aka Extension, we can use cmd on Windows or Terminal on Linux to perform deletion quickly.

Join the channel Telegram of the AnonyViet 👉 Link 👈

In case you encounter files with strange extensions, it may be caused by Viruses or other software. Deleting files to consider is definitely not affecting the operation of the operating system. It is recommended that you back up before following the instructions below.

Command to delete all files with any extension on Windows

This deletion method will delete the file permanently, no longer in the Recycle Bin.

First you need to open cmd (press Windows + CHEAPknock up cmd, Enter).

Access the drive containing the files with the extension you want to delete. For example you see drive D: contains multiple files ending in .abcxyz, type D: and Enter

cmd EASY

Continue typing the command to find and delete files with the extension with the command: del /s /f *.abcxyz(replace abcxyz with the one you want to find and delete). Inside:

  • del: command to delete files in Windows
  • /s: find and delete in subdirectories
  • /f: delete files with attribute Red-Only
  • *. all files with any name. For example, if you just want to delete the file anonyviet.abcxyz, change the sign *. Fort anonyviet.
  • abcxyz: file extension to delete

The results will be listed which directories contain files ending in *.abcxyzand has been removed:

find and delete windows files

Command to delete all files with any extension on Linux

On Linux, AnonyViet also often encounters the error of generating junk files due to using the wrong Plugin. A bad thing when using the wrong function to create webp image files, without deleting the original file, doubles the hard drive space. Therefore, I have to find a solution to delete all files with the extension webp.

Similar to cmd on Windows, Linux has a command prompt named Terimal or you can use Putty to SSH into the command:

find . -name '*.webp' -delete

Inside:

find: command to search in Linux

  • . : represents the current directory. If you want to search from root, replace the sign . sign /
  • -name: search by name, or extension.
  • ‘*.webp’: find all files with any name and ending with webp.
  • -delete: if found, delete it.

find and delete files on linux

With just a basic command line, you can quickly find and delete files with any extension within seconds. Using the command is very useful, you should learn more commands on cmd or linux to support your work.

The article achieved: 5/5 – (100 votes)

Tags: CommanddeleteExtensionfilesFindLinuxWindows
Previous Post

How to fix screen flickering in Windows 11

Next Post

How to convert Text to Speech with no time limit

AnonyViet

AnonyViet

Related Posts

Instructions for updating PHP to avoid PHP2Shell
Network

Instructions for updating PHP to avoid PHP2Shell

October 22, 2026
Instructions for detecting network vulnerabilities: How to check the system for data leaks (IP/DNS)
Network

Instructions for detecting network vulnerabilities: How to check the system for data leaks (IP/DNS)

October 9, 2026
Is Renting a Cheap VPS to Run Docker Really Effective?
Network

Is Renting a Cheap VPS to Run Docker Really Effective?

July 2, 2026
How to get a free domain for 1 year from Gravatar
Network

How to get a free domain for 1 year from Gravatar

June 23, 2026
Cloud Infrastructure Resilience: Mitigating Advanced Layer 7 Vulnerabilities and Securing High-Throughput Database Handshakes
Network

Cloud Infrastructure Resilience: Mitigating Advanced Layer 7 Vulnerabilities and Securing High-Throughput Database Handshakes

June 20, 2026
Save image as Type contains malicious code: Remove immediately before losing money unfairly!
Network

Save image as Type contains malicious code: Remove immediately before losing money unfairly!

March 19, 2026
Next Post
How to convert Text to Speech with no time limit

How to convert Text to Speech with no time limit

0 0 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

0 Comments
Oldest
Newest Most Voted

Recent News

How are Windows 11 Pro and Windows 10 Pro different?

How are Windows 11 Pro and Windows 10 Pro different?

October 23, 2026
Instructions for using CleanYourTV: Remove ads on Android TV, Google TV

Instructions for using CleanYourTV: Remove ads on Android TV, Google TV

October 23, 2026
Receive copyright for 3 Halloween software worth 0

Receive copyright for 3 Halloween software worth $150

October 23, 2026
How to use Messenger without a Facebook account

How to use Messenger without a Facebook account

October 22, 2026
How are Windows 11 Pro and Windows 10 Pro different?

How are Windows 11 Pro and Windows 10 Pro different?

October 23, 2026
Instructions for using CleanYourTV: Remove ads on Android TV, Google TV

Instructions for using CleanYourTV: Remove ads on Android TV, Google TV

October 23, 2026
Receive copyright for 3 Halloween software worth 0

Receive copyright for 3 Halloween software worth $150

October 23, 2026
AnonyViet - English Version

AnonyViet

AnonyViet is a website share knowledge that you have never learned in school!

We are ready to welcome your comments, as well as your articles sent to AnonyViet.

Follow Us

Contact:

Email: anonyviet.com[@]gmail.com

Main Website: https://anonyviet.com

Recent News

How are Windows 11 Pro and Windows 10 Pro different?

How are Windows 11 Pro and Windows 10 Pro different?

October 23, 2026
Instructions for using CleanYourTV: Remove ads on Android TV, Google TV

Instructions for using CleanYourTV: Remove ads on Android TV, Google TV

October 23, 2026
  • Home
  • Home 2
  • Home 3
  • Home 4
  • Home 5
  • Home 6
  • Next Dest Page
  • Sample Page

say88 tỷ lệ kèo nhà cái kèo nhà cái 5 febet

No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office

say88 tỷ lệ kèo nhà cái kèo nhà cái 5 febet

wpDiscuz
0
0
Would love your thoughts, please comment.x
()
x
| Reply