SMB folder keep showing up after deletion via explorer

Hi Team,

I have observed the following behavior:

I have setup my truenas using AD integration, I am on version 25.10.3.

I set up a dataset to be exploted as NFS for the backend Openshift server to be able to import as storage class and thats working fine. The same dataset is configured as SMB to allow the DBA team to attach thenselves to the SMB via windows or MacOS to allow them to delete PVCs as they create them via Openshift.

Problem:

When the DBA group (they have full control to the SMB share via ACL) delete the unneeded PVC using explorer, they appear to get deleted but reappear right after, no matter how many times they get deleted they come right back. I checked the NAS for snapshots but there is none there. Anyone know what is happening here?

Expectation:

The expected behavior is, when DBA delete the PVC via explorer or finder (macOS) they will be done forever and the Truenas should reflect the same instantly, instead of the PVC folder reappearing.

Hi Team,

I think I figure this out, once a storage class policy in kubernetes is set to “retain” the PVC will hold a lock from deleting….even when you delete the PVC and PV in kubernetes the backend volume will remain. To fix this, set your storage class to “delete” instead to ensure when PVC and PV are purge the backend storage will purge them too. Hope this helps someone out there working on K8S.