Remove-RDMDeletedEntry
Synopsis
Delete the history of one or more deleted entries
Syntax
Id
Remove-RDMDeletedEntry [-ID] <guid> [-PassThru] [-VaultMode <VaultMode>]
[-ForcePromptAnswer <DialogResult[]>] [-WhatIf] [-Confirm] [<CommonParameters>]InputObject
Remove-RDMDeletedEntry [-InputObject] <PSConnectionHistory[]> [-PassThru]
[-ForcePromptAnswer <DialogResult[]>] [-WhatIf] [-Confirm] [<CommonParameters>]Description
Delete the history of one or more deleted entries. For the workspace supporting this functionality, every time an entry is deleted it is logged. This cmdlet will delete the entries from the log, permanently deleting them. The user can permanently delete an entry by its ID, or by the result of the cmdlet Get-DSDeletedEntry. The user must be an administrator or vault owner this use this cmdlet.
Examples
Example 1
PS C:\> $today = (Get-Date).Date;
$deletedEntries = Get-RDMDeletedEntry | Where ModifiedDate -ge $today
Remove-RDMDeletedEntry -InputObject $deletedEntriesDelete all entries deleted today
Example 2
Delete all deleted entries whose groupName is 'a\group\name'.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
-ForcePromptAnswer
Switch to use with caution. It will automatically answer prompt asking yes/no, yes/no/cancel, or ok/cancel questions. In case of multiple prompts, multiple values can be passed to this parameter. Here are the accepted values:
Yes: Accept the prompt. Cover the OK and Automatic value.
No: Refuse the yes/no/cancel prompt. "Cancel" is the fallback option if there is no "No" option.
Cancel: Cancel the yes/no/cancel prompt. "No" is the fallback option if there is no "Cancel" option.
-ID
Histories to delete of a specific entry
-InputObject
Histories to delete obtained from Get-RDMDeletedEntry
-PassThru
Return the InputObject input.
-VaultMode
Vault where the command will be applied. Three choices are offered:
Default: Current vault that has been set.
User: Vault specific to the current user.
Global: Global vault of the workspace.
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
RemoteDesktopManager.PowerShellModule.PSOutputObject.PSConnectionHistory
Array of PSConnectionHistory obtained from Get-RDMDeletedEntry
Notes
For more information, type "Get-Help Remove-RDMDeletedEntry -detailed". For technical information, type "Get-Help Remove-RDMDeletedEntry -full".
Last updated
Was this helpful?