ZDCDeleteNodeOptions

enum ZDCDeleteNodeOptions {}

When you queue an operation to delete a node in the cloud, it’s possible the state of the cloud may change between when you issued the delete request, and when the request arrives at the server.

These options specify how you’d like the server to handle the request, in the event it finds changes.

  • This option indicates that outdated nodes should still be deleted. An outdated node is one which has been changed between when the request was created, and when the request arrived at the server.

    For example, the data has been modified, or the node has been renamed.

    This option specifies that you want outdated nodes to also be deleted. If this flag is NOT set, then outdated nodes will NOT be deleted. And, as such, the server will not delete any nodes in the hierarchy between the outdated node & the target node.

    Declaration

    Objective-C

    ZDCDeleteOutdatedNodes = 1 << 0

    Swift

    static var outdatedNodes: ZDCDeleteNodeOptions { get }
  • This option indicates that unknown nodes should still be deleted. An unknown node is one which has been added between when the request was created, and when the request arrived at the server.

    For example, a child node (in one of the subdirectories, at any level) was added.

    This option specifies that you want unknown nodes to also be deleted. If this flag is NOT set, then unknown nodes will NOT be deleted. And, as such, the server will not delete any nodes in the hierarchy between the unknown node & the target node.

    Declaration

    Objective-C

    ZDCDeleteUnknownNodes = 1 << 1

    Swift

    static var unknownNodes: ZDCDeleteNodeOptions { get }