Trash Commands

This page details commands related to trash.

Overview

List or manage deleted records in the trash. Deleted records remain in the trash until purged.

Commands

The following functionalities are available when it comes to managing trash through CLI and SDK

Trash List Command

This command lists the records and folders in the trash of vault. The trashed records are loaded in memory and can be fetched as deleted, orphaned and shared folders

chevron-rightDotNet CLIhashtag

Command: trash

Example:

My Vault> trash list
  #  Folder UID              Record UID              Name                             Record Type  Deleted At             Status
---  ----------------------  ----------------------  -------------------------------  -----------  ---------------------  ------
  1                          0thOtx4abVGBaNKcycX04Q  defws                            address                             Share 
  2  JSz1s5lZ_KUNwbCnvQZRPw                          testrtg                                       08/10/2025 5:07:04 AM  Folder
chevron-rightDotNet SDKhashtag

Functions:

These functions together will give all trashed data.

chevron-rightPower Commanderhashtag

Command: Get-KeeperTrashList -Verbose

Example

chevron-rightPython CLIhashtag

Command: trash list

Flags:

-v --verbose Show detailed verbose output

--format Format of output - Table, JSON or SCV

--output Path to resulting output file (ignored for "table" format)

pattern Search criteria while listing trash

Example:

chevron-rightPython SDKhashtag

Function: _ensure_deleted_records_loaded

Trash Restore Command

Use this command to restore any records present in the trash of vault.

chevron-rightDotNet CLIhashtag

Command: trash restore <recorduid>

Example:

chevron-rightDotNet SDKhashtag

Command: RestoreTrashRecords

chevron-rightPower Commanderhashtag

Command: Restore-KeeperTrashRecords

Example:

chevron-rightPython CLIhashtag

Command: trash restore

Parameter:

records List of record UIDs to be restored

Flags:

--force Skip confirmation messages

-h, --help show this help message and exit

Example:

chevron-rightPython SDKhashtag

Function: restore_trash_records

Trash Get Command

Use this command to fetch a trashed record and display its information

chevron-rightDotNet CLIhashtag

Command: trash get <recorduid>

Example:

chevron-rightDotNet SDKhashtag

Command: Not Applicable

chevron-rightPower Commanderhashtag

Command: Get-KeeperTrashedRecordDetails

chevron-rightPython CLIhashtag

Command: trash get

Parameter:

record Record UID

Example:

chevron-rightPython SDKhashtag

Function: get_trash_record

Trash Unshare Command

Use this command to remove or unshare a trashed record from the vaults of other users to avoid creating orphaned accounts. Trashed records will exist in the vaults of users with whom they are shared.

chevron-rightDotNet CLIhashtag

Command: trash unshare <recorduid>

Example:

chevron-rightDotNet SDKhashtag

Command: Not applicable

chevron-rightPower Commanderhashtag

Command: Remove-TrashedKeeperRecordShares

Example:

chevron-rightPython CLIhashtag

Command: trash unshare

Parameter:

records Record UID

Flags:

--force Skip confirmation prompts

-h, --help show this help message and exit

Example:

chevron-rightPython SDKhashtag

Not Applicable

Trash Purge Command

This command is used to clean or clear out (permanently delete) all records and shared folder from the trash

chevron-rightDotNet CLIhashtag

Command: trash purge

Example:

chevron-rightDotNet SDKhashtag

Command: Coming Soon

chevron-rightPower Commanderhashtag

Command: Clear-KeeperTrash

Example:

chevron-rightPython CLIhashtag

Command: trash purge

Flags:

--force Skip conformation prompts

-h, --help Show this help message and exit

Example:

chevron-rightPython SDKhashtag

Function: purge_trash

Last updated

Was this helpful?