Class SystemDeleteFileParams
Transaction parameters for administratively deleting a file from the network.
Inherited Members
Namespace: Hiero
Assembly: Hiero.dll
Syntax
public sealed class SystemDeleteFileParams : TransactionParams<TransactionReceipt>
Examples
Superuser-only: remove a file that would otherwise be undeletable. Restorable via SystemRestoreFileParams:
// Superuser-only: delete a file that is otherwise undeletable
// (e.g. an immutable file). The file becomes inaccessible but can
// be restored via SystemRestoreFileAsync within a grace window.
var receipt = await client.SystemDeleteFileAsync(new SystemDeleteFileParams
{
File = file
});
Console.WriteLine($"System delete status: {receipt.Status}");
Properties
| Edit this page View SourceCancellationToken
An optional cancellation token that can be used to interrupt the transaction.
Declaration
public CancellationToken? CancellationToken { get; set; }
Property Value
| Type | Description |
|---|---|
| CancellationToken? |
File
The address of the file to delete.
Declaration
public EntityId File { get; set; }
Property Value
| Type | Description |
|---|---|
| EntityId |
Signatory
Optional additional signatories.
Declaration
public Signatory? Signatory { get; set; }
Property Value
| Type | Description |
|---|---|
| Signatory |