VaultTransaction.trash method
VaultTransaction › trash
Soft-deletes a resource by moving it into the staging folder, recording the move-back as the inverse. The real trash happens on VaultTransaction.commit. A no-op if the resource does not exist.Signature:
trash(pathOrFile: PathOrAbstractFile): Promise<void>Parameters:
| Parameter | Type | Description |
|---|---|---|
| pathOrFile | PathOrAbstractFile | The path or resource to trash. |
Returns: Promise<void> — A Promise that resolves when the resource has been staged.