removeDirectory

suspend fun removeDirectory(path: String, recursive: Boolean = false)

Removes the directory at the given path from the repository. If recursive is true it removes also the contents, otherwise the directory must be empty.