Delete a file
A transaction that deletes a file from a Hedera network. When deleted, a file's contents are truncated to zero length and it can no longer be updated or appended to, or its expiration time extended. When you request the contents or info of a deleted file, the network will return FILE_DELETED.
Transaction Signing Requirements
The key(s) on the file are required to sign the transaction
If you do not sign with the key(s) on the file, you will receive an INVALID_SIGNATURE network error
Transaction Fees
Please see the transaction and query fees table for base transaction fee
Please use the Hedera fee estimator to estimate your transaction fee cost
new FileDeleteTransaction()
Initializes the FileDeleteTransaction object
Methods
setFileId(<fileId>)
FileId
The ID of the file to delete in x.y.z format
Get transaction values
getFileId(<fileId>)
FileId
The ID of the file to delete (x.z.y)
Last updated