rmdir

This task deletes directories on the device. This task is slightly faster than the delete task since it does not need to make a query to determine what to delete.

Use nested dir elements to delete multiple unrelated directories. All directories will be deleted as part of a single SOMA request to the device.

Attributes/Options

Name

Description

Required

dir

A directory or a path on the device.

Could include a filesystem which is defined using ‘filesystem:/’ syntax. If not provided, the filesystem will default to local:/.

Yes

failOnError

Fail if the directory doesn’t exist.

Defaults to true.

No

dir Nested Element

Name

Description

Required

path

A directory or a path.

Could include a filesystem which is defined using filesystem:/ syntax. If not provided, the filesystem will default to local:/.

Yes

Examples

dpbuddy rmdir -dir="/dir1/dir2" -failOnError false
<dp:rmdir dir="/dir1/dir2" failOnError="false"/>