Deleting files in recycle bin

Hi,

I want to delete all the files from Recycle Bin but i am not able to do it. My Robot is able to detect recycle bin and then open it also but after that i am not able to delete files from it.

Hello,

Wouldn’t it be easier to right click and empty Recycle bin?
Or you want to delete from code?

Regards,
Bogdan

Hello there,
Use CMD via Start process and run the script
rmdir /q /s C:\Recycler
or
rd /s /q %systemdrive%$RECYCLE.BIN

For more

Hi,

I have selected all the files in recycle bin after that i have used recording activity to get right click after that i want to select delete and i am not able to select delete option as well and is there any way where i can directly use Keyboard delete button.

Hi,

in command prompt its throwing an error saying the system cannot find the file specified.

Hello there,
First thing you need to run cmd as admin and you need to change the folder name according .
In case of using keyboard delete button you can use SendHotkey activity and then enter
delete

Hi,

its not working
shall i send you my workflow

Just saw this post and wanted to comment on what I found that fixed this. Do Start Process, with a Bat file that has the following Powershell command in it “powershell.exe -executionpolicy bypass -NoProfile -Command Clear-RecycleBin -Confirm:$false”

I am trying to above action but unfortunately i am getting the Log error please selp me if you have any idea how to get read of the popup

Hello @Venkata_Surya_Narayana_Ka

Please use this command in CMD

rd /s /q %systemdrive%$Recycle.bin

But please make sure you open CMD with Admin rights or make sure you have the proper rights on the logged user.

Try on your local machine first, it should work.

Reference here - windows - how to empty recyclebin through command prompt? - Stack Overflow