Delete a file
Last updated
Was this helpful?
Last updated
Was this helpful?
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 table for base transaction fee
Please use the to estimate your transaction fee cost
new FileDeleteTransaction()
Initializes the FileDeleteTransaction object
setFileId(<fileId>)
FileId
The ID of the file to delete in x.y.z format
getFileId(<fileId>)
FileId
The ID of the file to delete (x.z.y)