Storage DFMS

Storage DFMS

  • Getting Started
  • CLI
  • Guides
  • Help

›Drive

Contract

  • Create drive
  • Join to Drive

Drive

  • Get Drive Info
  • Upload File
  • Remove File
  • Start Drive Verification
  • End Drive Verification
  • Drive Files Reward

Exchange

  • Exchange

Remove File

This guide will help you remove files on a cloud drive.

Requirements

  • IDE or text editor
  • ProximaX Catapult SDK
  • Have one owner
  • Have one active drive

Example

The owner wants to delete a file from the drive.

removeFileTx, _ := client.NewDriveFileSystemTransaction(
    sdk.NewDeadline(time.Hour),
    driveAccount.PublicAccount,
    oldRootHash,
    newRootHash,
    []*sdk.AddAction{},
    []*sdk.RemoveAction{
        {
            FileHash: fileHash,
        },
    },
)
removeFileTx.ToAggregate(owner.PublicAccount)
← Upload FileStart Drive Verification →
  • Requirements
  • Example
Storage DFMS
Roles
OwnerReplicatorVerifier
Built-in Features
ExchangeDriveChallenge
Protocol
Cross-block protocolFair streaming
Facebook Open Source
Copyright © 2020 ProximaX