My Oracle Support Banner

Error 'Directory Not Empty' While Deleting Directories (Doc ID 2745791.1)

Last updated on JANUARY 28, 2021

Applies to:

Oracle Cloud Infrastructure - Version N/A to N/A [Release 1.0]
Information in this document applies to any platform.

Symptoms

On a Compute Instance using an NFS filesystem provided by OCI's FSS (File Storage Service), errors similar to the below one are observed when attempting to recursively delete directories (via the 'rm -rf ...' command):

rm: cannot remove `<PATH>': Directory not empty

The above is not observed for all directories in the specified path but, upon a manual check, it was observed that the referred paths were empty

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.