# Some thoughts on Z2JH "Trash" - feel like I'm close but need some nudge(s) in the right direction?

**URL:** <https://discourse.jupyter.org/t/some-thoughts-on-z2jh-trash-feel-like-im-close-but-need-some-nudge-s-in-the-right-direction/22891>\
**Category:** Zero to JupyterHub on Kubernetes\
**Tags:** jupyterhub, help-wanted\
**Created:** [December 13, 2023, 4:19pm UTC](https://discourse.jupyter.org/t/some-thoughts-on-z2jh-trash-feel-like-im-close-but-need-some-nudge-s-in-the-right-direction/22891 "2023-12-13T16:19:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pastram-i](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/pastram-i/32/10583_2.png) [@pastram-i](https://discourse.jupyter.org/u/pastram-i)\
**Post date:** [December 13, 2023, 4:19pm UTC](https://discourse.jupyter.org/t/some-thoughts-on-z2jh-trash-feel-like-im-close-but-need-some-nudge-s-in-the-right-direction/22891/1 "2023-12-13T16:19:58Z")

</div>

I’d like to provide a file ‘security net’ for my users using Z2JH.

My solution would be to utilize a share file system, mounted to each pod.

```auto
    extraVolumes:
      - name: trash
        persistentVolumeClaim:
          claimName: trash-pvc
    extraVolumeMounts:
      - name: trash
        mountPath: # Would this be ~/.local/share/Trash? /.Trash?
        subPath: trash

```

I can toggle [delete\_to\_trash](https://jupyter-server.readthedocs.io/en/latest/other/full-config.html) to `True` in the `jupyter_server_config.py`, and I know Jupyter uses the [send2trash](https://pypi.org/project/Send2Trash/) python extension to do so.

Because trash doesn’t exist in a container, this obviously doesn’t work by default - is there any way to tell send2trash where the trash directory is, or a pseudo one to use?
