Forum Discussion
Ivan54
Mar 06, 2017Bronze Contributor
How to hide recycle bin in modern UI?
Hi, does anyone know how to hide the Recycle Bin Quick Launch item? I can turn of quick launch navigation successfully, but Recycle Bin remains, which isn't useful in a publishing scenario (I know p...
paulpascha
Mar 06, 2017Bronze Contributor
Traditionallly the only way to hide the link is by inserting custom CSS somehow or removing the server control responsible for rendering the link from the master page. Both options have downsides and I consider them more like hacks. In modern team sites there's no support for custom master pages and there's no way to easily include custom CSS.
One way I can think of is you could create a custom SPFx-based Web Part emitting the required CSS and insert it on pages where you want to hide the link. Its very hard to target all pages this way so there will be cases the link will still be shown.
In the future there will be more SPFx-based options to customize the UI so that might result in more elegant ways being available.