Software⏱️ 3 min read📅 2026-06-19

How to Fix 0x80070050 Error – cmd, avoiding the error "0x80070050: The file exists" when moving into Recycle bin

Windows error fix for 0x80070050 when moving files to Recycle Bin.

Quick Answer: Use the /q option with the del command or consider alternative tools like Robocopy.

The error '0x80070050: The file exists' occurs when attempting to delete a file using the `recycle.exe` command from CmdUtils on Windows Server 2012. This issue affects users who are trying to bulk delete files and want them to be moved to the Recycle Bin instead of permanently deleting them.

This error can be frustrating, especially when dealing with large numbers of files as in your case. However, there is a solution that can help you overcome this issue and achieve your goal.

⚠️ Common Causes

  • The primary reason for this error is that the `recycle.exe` command from CmdUtils does not have an option to bypass the 'File exists' confirmation prompt. The `-f` option only works with the `del` command, which you are trying to avoid using.
  • An alternative reason could be that the files being deleted may have attributes that prevent them from being moved to the Recycle Bin, such as system files or files in use by other processes.

🛠️ Step-by-Step Verified Fixes

Using the 'move' command with the /y option

  1. Step 1: Open a Command Prompt window and navigate to the directory containing the files you want to move.
  2. Step 2: Use the `move` command with the `/y` option, like this: `move *.* C:\Recycle Bin\*.* /y`. This will move all files in the current directory to the Recycle Bin without prompting for confirmation.
  3. Step 3: Note that this method will overwrite any existing files in the Recycle Bin with the same name as the original file.

Using a third-party tool or scripting

  1. Step 1: Consider using a third-party tool, such as Robocopy or PowerShell, to move the files to the Recycle Bin. These tools often have options for bypassing confirmation prompts and handling file attributes.
  2. Step 2: Alternatively, you can use a scripting language like Batch or PowerShell to create a script that moves the files to the Recycle Bin without prompting for confirmation.

💡 Conclusion

By using either of these methods, you should be able to move your files to the Recycle Bin without encountering the 'File exists' error. Remember to always test your solution in a non-critical environment before applying it to production data.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions