Files are kept in the recycle bin until you delete them or until your hard drive fills up and Windows needs to free space on your computer. You can also set how long files are kept in the Recycle Bin.
Press the Win+I keys to open "Settings-> System-> Storage" and then click the “Change how we free up space automatically” link.
Under "Temporary Files" select the checkbox for "Delete files in my recycle bin if they have been there for over" and select a time frame from the drop-down list.
In Windows 11, you'll find the same option by going to "Settings-> System-> Storage-> Storage Sense". Turn the feature on, to be able to configure the Recycle bin option.