This section describes how to delete a namespace to release storage space.
Prerequisites
Services in a namespace have been stopped, and the namespace has not been shared or configured with any value-added services.
If the object service has been enabled for the namespace, the .snapshot and .recyclebininternal directories in the namespace will cause the namespace to fail to be deleted. Ensure that the snapshot directory and recycle bin directory are invisible for the namespace and the namespace does not contain any object.
If the snapshot directory is invisible, you can directly modify it according to steps in Modifying Properties of a Namespace. If the recycle bin directory is invisible, run the following command on the CLI:
change hdfs general name=Namespace name is_trash_visible=false