• Remove a file from your S3 bucket.

    Parameters

    Returns Promise<RemoveWithPathOutput>

    Output containing the removed object path.

    Throws

    service: S3Exception - S3 service errors thrown while while removing the object.

    Throws

    validation: StorageValidationErrorCode - Validation errors thrown when there is no path or path is empty or path has a leading slash.

  • Parameters

    Returns Promise<RemoveOutput>

    Output containing the removed object key

    Deprecated

    The key and accessLevel parameters are deprecated and may be removed in the next major version. Please use path instead.

    Remove a file from your S3 bucket.

    Throws

    service: S3Exception - S3 service errors thrown while while removing the object

    Throws

    validation: StorageValidationErrorCode - Validation errors thrown when there is no key or its empty.