13.4. 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.

13.4.1. 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

13.4.2. 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

13.4.3. Examples

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

Previous page

← 13.3. mkdir

Next page

→ 13.5. download