Developer API
...
File Operations
Function: removeFile()
4 min
docid\ wxgxpnpidcz6 2b6gh786 docid\ l2rwyc57gjg6s93mcecr9 / removefile removefile ( fsid , path , wallet ) promise < transaction > defined in https //github com/xandeum/xandeum web3 js/blob/master/src/removefile ts#l17 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 throws may throw an error if path is invalid per sanitizepath