In Kubernetes, EmptyDir is a type of volume that is created when a pod is assigned to Node. It remains as long as the pod is running on that node. The data in an EmptyDir is ephemeral and is deleted permanently when the pod is removed from the node. This makes EmptyDir volumes for temporary storage that shares the data between the containers.
As per this Article by DevCodeF1 Editors :
Termination of a Pod using EmptyDIR Volume : when a Pod is using an EmptyDir volume terminates, the directory and the contents are deleted from the node. However, the disk space used by EmptyDir is not immediately released. The space is released when the node is deleted or when the node's available storage drops down the certain threshold, at which point the node’s CSI driver may reclaim the unused space.
Reuse of EmptyDir space by other Pod : Since the EmptyDir is created on the node not on a separate storage system, the space used by the terminated Pod’s EmptyDir can be reused by other pods. This can lead to data conflict if multiple pods write to the same EmptyDir without proper synchronization mechanism in place.
This means that while the EmptyDir volume is cleared from the pods perspective, there is a possibility that the data can still be recoverable using the forensic tools if the same disk space is reassigned to another pod.
Refer to this Decisive DevOps article and also check this blog by Rajesh Kumar for more information which might be helpful for you.