Windows Media Player Delete File Error Fix
In this article
Are you getting a frustrating "cannot delete file device" error in Windows Media Player? This means Windows Media Player is unable to remove a file from the storage device it’s accessing – typically an external hard drive, USB flash drive, or even a network location. The most common cause is file permissions, but it can also be due to the file being in use, corrupted, or a driver issue. Here's a step-by-step guide to fixing this problem.
What You'll Need
- Administrator privileges on your Windows computer.
- Access to the storage device containing the file.
- Potentially, a different file manager (like File Explorer).
Step-by-Step
- Close Windows Media Player: Ensure Windows Media Player is completely closed. Check the system tray (bottom right corner of your screen) for the WMP icon and right-click to exit if it's running in the background.
- Check File Permissions: This is the most frequent culprit. Open File Explorer (Windows key + E). Navigate to the location of the file you’re trying to delete. Right-click the file and select "Properties." Go to the "Security" tab.
- Verify Your User Account Has Permissions: Under "Group or user names," make sure your user account (or a group you belong to, like "Users") is listed. If it isn't, click "Edit," then "Add," and type your username. Click "Check Names" and then "OK."
- Grant Permissions: Select your username in the "Group or user names" list. If not, click "Edit," select the necessary permissions, and click "Apply" then "OK. You may need to click "Continue" to bypass a User Account Control prompt.
- Try Deleting Again: After confirming permissions, try deleting the file through Windows Media Player again.
- Use File Explorer to Delete: If Windows Media Player still fails, try deleting the file directly from File Explorer. This bypasses WMP and can sometimes resolve the issue.
- Check if the File is in Use: The file might be open in another program. Close any programs that might be using the file (including other media players, editors, or even background processes).
- Restart Your Computer: A simple restart can sometimes resolve temporary file locking issues.
- Run CHKDSK: The storage device might have file system errors. Open Command Prompt as an administrator (search for "cmd," right-click, and select "Run as administrator"). Type `chkdsk [drive letter]: /f` (replace `[drive letter]` with the drive letter of the storage device, e.g., `chkdsk D: /f`) and press Enter. It will likely ask to schedule the check for the next restart; type `Y` and press Enter, then restart your computer. CHKDSK will scan for and attempt to fix file system errors.
- Update Drivers: Outdated or corrupted drivers for your storage device can cause problems. Open Device Manager (search for "Device Manager" in the Start menu). Expand "Disk drives" and locate your storage device. Right-click it and select "Update driver." Choose "Search automatically for drivers."
- Scan for Malware: Although less common, malware can sometimes interfere with file operations. Run a full scan with your antivirus software.
Common Mistakes
- Not running Command Prompt as administrator: CHKDSK requires administrator privileges to function correctly.
- Incorrect drive letter in CHKDSK: Double-check the drive letter before running CHKDSK.
- Not granting sufficient permissions: Ensure "Full control" is checked (or at least "Modify" and "Delete") for your user account in the file's properties.
- Assuming the problem is with Windows Media Player alone: Try deleting the file using File Explorer to rule out a WMP-specific issue.
- Ignoring User Account Control prompts: Pay attention to UAC prompts and allow changes when requested.
Tips
- Shorten the File Name: Extremely long file names can sometimes cause issues. Try renaming the file to something shorter and simpler.
- Move the File: Try moving the file to a different location on your computer (e.g., your desktop) and then deleting it.
- Delete from Safe Mode: Boot your computer into Safe Mode (search online for instructions specific to your Windows version). Safe Mode starts Windows with a minimal set of drivers and services, which can bypass some conflicts. Try deleting the file from within Safe Mode.
- Use a Third-Party File Deleter: Some third-party utilities are designed to force-delete files that are otherwise inaccessible. Be cautious when using these, as they can potentially cause data loss if used incorrectly.
Troubleshooting
If CHKDSK finds and fixes errors, but the problem persists: The storage device itself might be failing. Consider backing up your data and replacing the device. A failing drive can exhibit a variety of unpredictable behaviors, including file deletion errors.
If you’re using a network drive: The issue might be with the network connection or permissions on the network share. Contact your network administrator for assistance.
If the file is corrupted: Corrupted files may be un-deletable. Attempt to recover the data if possible, then format the device (after backing up any other important files) to resolve the corruption.
If the problem occurs with specific files only: It’s possible those files are inherently damaged. Try copying them to a different location and then deleting them from the original location.
Frequently Asked Questions
What does "cannot delete file device" actually mean?
It means Windows Media Player is unable to remove a file from the storage device it’s accessing, likely due to permission issues, the file being in use, or a technical problem with the device or its drivers.
Why do I need administrator privileges?
Administrator privileges are required to modify file permissions and run system tools like CHKDSK, which are necessary for resolving many file deletion errors.
Can I delete the file without Windows Media Player?
Yes! File Explorer is a perfectly capable file manager. Deleting the file via File Explorer bypasses Windows Media Player and can often resolve the error if it’s a WMP-specific issue.
What is CHKDSK and why should I run it?
CHKDSK is a Windows utility that checks the integrity of a file system. It can find and fix errors that might be preventing file deletion.
I’ve tried everything, and I still can’t delete the file. What should I do?
The storage device itself may be failing. Back up your data immediately and consider replacing the device. You could also try using a third-party file deletion tool, but proceed with caution.
Is it safe to just format the drive?
Formatting the drive will erase all data on it. Only do this as a last resort, after backing up any important files.