return correct error when delete non-empty dir

When you try delete non-empty dir it takes long time, because api return 409 and code sleep and try it again.