There is no supported way to do so irrespective of language.
As far as I understand there is no API to configure this settings. You can query information about recycle bin via PInvoke ( SHQueryRecycleBin and empty ( SHEmptyRecycleBin ).
Couple ways to touch those settings can be found in Raymond Chen's blog post - What is default size of the Recycle Bin... . Summary below:
Official way to adjust size - via policy Maximum allowed Recycle Bin size .
Unsupported way - tweak registry settings - Managing the Recycle bin
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.