Repository navigation
Deleting Services
Dave Walker edited this page Jan 28, 2025
·
1 revision
The following forms of the "delete" command are accepted:
- Delete by Id
- Delete by service and account name
Each service is assigned a unique "Id" when it's added to the database. This is shown when 2FA codes are generated and when the contents of the database are listed. For example:

This Id can be used to specify a service to be deleted as follows:
/path/to/OtpGenerator.Terminal --delete id
Where:
| Argument | Comments |
|---|---|
| /path/to/OtpGenerator.Terminal | The path to the OTP Generator binary, named "OtpGenerator.Terminal" on MacOS and Linux and "OtpGenerator.Terminal.exe" on Windows |
| id | The unique Id for the service/account pair |
The application will respond as follows:

To locate the service to be deleted by its name and the associated account, use the following form of the command:
/path/to/OtpGenerator.Terminal --delete "service" "account"
Where:
| Argument | Comments |
|---|---|
| /path/to/OtpGenerator.Terminal | The path to the OTP Generator binary, named "OtpGenerator.Terminal" on MacOS and Linux and "OtpGenerator.Terminal.exe" on Windows |
| service | The service name |
| account | The account name |
Values need only be quoted "..." if they contain special characters or spaces.
The application will search for a matching record and, if found, will respond as follows:
