how to delete the pendrive files...

happygeek commented: stop posting questions you answer yourself, both badly it should be said. Are you some kind of failed spammer +0

Dani AI

Generated

Several short gaps in the replies are worth filling: simple deletion and formatting were suggested by , and , but problems commonly seen in the field are (1) file/drive write-protection or special attributes, (2) files locked by a running process or antivirus, and (3) filesystem corruption — each needs a different approach. The notes below cover safe troubleshooting steps and how to make deletion permanent when required.

When files refuse to delete: check for a physical write-protect switch on the stick, an antivirus lock, or file attributes/permissions. From an elevated Windows Command Prompt the attributes can be cleared recursively:

attrib -s -h -r F:\*.* /S /D

Replace F: with the USB drive letter. If the whole device is marked read-only, use DiskPart carefully:

diskpart
list disk
select disk N    (replace N with the correct disk number)
attributes disk clear readonly
exit

Always confirm the correct disk number before running DiskPart.

If the filesystem is corrupted or Explorer reports errors, repair the volume:

chkdsk F: /f

Run after closing other programs that might hold files. A full repair (/r) can take much longer.

To make deletions permanent: a normal delete or a quick format leaves data recoverable. For simple free-space wiping on Windows use:

cipher /w:F:

To securely overwrite specific files, Sysinternals SDelete can be used (example):

sdelete -p 3 C:\path\to\file

Note that flash drives use wear‑leveling; overwriting may not guarantee complete physical erasure on every controller. For truly sensitive data either verify the drive supports a hardware secure-erase or destroy the device after backing up needed files. Always back up anything important and double-check the target drive letter before running low-level commands.

Recommended Answers

All 4 Replies

Highlight files you want to delete. Press delete.

Unless you mean how to securely erase them of course, which is a different matter.

By the way, stop using two newly created accounts: one to post these questions and another to answer them. Admins/Mods can see your full IP address, and when you joined, and where from etc etc.

better to formate pendrive.then all you data will loos try to back up data...

commented: talking to yourself again I see +0
commented: Sad, really. -3

Oh, look, here he is with an answer to his own question right on cue...

If you want to permanently delete pendrive files then format the pendrive. otherwise press ctrl+A..then click on delete button.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.