DBFILESDeleteArg

@interface DBFILESDeleteArg : NSObject <DBSerializable, NSCopying>

The DeleteArg struct.

This class implements the DBSerializable protocol (serialize and deserialize instance methods), which is required for all Obj-C SDK API route objects.

  • Path in the user’s Dropbox to delete.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull path;

    Swift

    var path: String { get }
  • Perform delete if given rev matches the existing file’s latest rev. This field does not support deleting a folder.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSString *parentRev;

    Swift

    var parentRev: String? { get }
  • Full constructor for the struct (exposes all instance variables).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithPath:(nonnull NSString *)path
                               parentRev:(nullable NSString *)parentRev;

    Swift

    init(path: String, parentRev: String?)

    Parameters

    path

    Path in the user’s Dropbox to delete.

    parentRev

    Perform delete if given rev matches the existing file’s latest rev. This field does not support deleting a folder.

    Return Value

    An initialized instance.

  • Convenience constructor (exposes only non-nullable instance variables with no default value).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithPath:(nonnull NSString *)path;

    Swift

    init(path: String)

    Parameters

    path

    Path in the user’s Dropbox to delete.

    Return Value

    An initialized instance.