Deleting a File or Folder
Delete an existing file or folder as needed.
Context
Deleting a folder will also delete all files in it. Ensure that all files in a folder can be deleted before deleting the folder.
Deleting unwanted files or folders saves space and costs.
Procedure
- Log in to OBS Browser+.
- Go to the bucket from which you want to delete a file or folder.
- Right-click the file or folder to be deleted and click Delete.
You can select multiple files or folders and choose More > Delete above the list to batch delete them.
- In the displayed dialog box, click Yes.
Important Notes
In big data scenarios, parallel file systems usually have deep directory levels and each directory has a large number of files. In such case, deleting directories from parallel file systems may fail due to timeout.
To address this problem, you are advised to run the hadoop fs - rmr obs://{Name of a parallel file system}/{Directory name} command on the Hadoop client that has OBSA, an OBS client plugin, embedded.