Delete a file
Last updated
Last updated
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
Constructor | Description |
---|---|
Method | Type | Description |
---|---|---|
Method | Type | Description |
---|---|---|
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)