Hi @Anushakhalil and welcome Yes, the idea for the recycle bin is something that we would love to have in Plone.
CastleCMS is built using Plone and it includes a recycle bin function that I think works well. You can look at the code in GitHub - castlecms/castle.cms: A product of Wildcard Corp. https://wildcardcorp.com, specifically some starting points at Search 路 recycle 路 GitHub I think CastleCMS took the approach of marking an item as deleted and then modified all the views so that they would not show anything that was marked as deleted.
A similar way that trash / recycle bins have been implemented is as an additional workflow state, so they would do something like this: take the default workflow (Simple Publication) and add a state called "deleted" and associated transitions. All default views in Plone would have to look for items in this state and not show them.
There are other approaches that have been taken over the years, implemented as add-ons, such as these:
- PyPi search for "trash"
To understand this more, it would be good if you familiarized yourself with Plone. Install it, run through the user documentation, look at the code, try the Mastering Plone training for the most up to date developer docs.
You should look at a view like folder_contents
and see how it finds things to display.
You should also look at the workflows Plone comes with and see how they work.
I'm happy to guide your exploration!