The following is the preferred and recommended method to use to remove the recycle bin icon from your Windows desktop. Assuming this option exists on your particular Windows version - I've tested the process to be working on Microsoft Windows 10 and 11 operating systems. So if your running from the same environment, here's one way to remove the recycle bin:
Right mouse click on your desktop and select Personalize.
From the left pane, select Themes.
Under related settings, select "Desktop icon settings".
In the window that appears, uncheck "Recycle Bin".
Press OK to save your changes.