Xandeum Web3 Library - v1.12.0
    Preparing search index...

    Function removeFile

    • Constructs a Solana transaction to remove a file from a file system, identified by a file system ID (fsid) and a UTF-8 encoded file path.

      Parameters

      • fsid: string

        A stringified integer representing the file system ID in which the file resides.

      • path: string

        The full path to the file to be deleted.

      • wallet: PublicKey

        The public key of the wallet that signs and authorizes the transaction.

      Returns Promise<Transaction>

      A Promise that resolves to a Solana Transaction object containing the remove file instruction.

      May throw an error if path is invalid per sanitizePath.