Delete Password from Keychain (script step reference)

Troi Encryptor Plug-in > Script steps reference > Delete Password from Keychain
Troi Encryptor Plug-in for FileMaker Pro

Delete Password from Keychain

Deletes a password from the keychain (for this account and/or yourID).

SyntaxScript step badge

Delete Password from Keychain [ Select ; Account ; YourID ]

Options

Select entire contentsreplaces the entire contents of a field with the result. If not checked the result replaces the currently selected portion of the field
Accountthe name of the account for this password
YourID(optional) the extra ID that was used for this password

Returned Result

Data type returned

Error code

Result

The returned result is an error code. An error always starts with 2 dollars, followed by the error code. You should always check for errors. Returned error codes can be:

0no errorthe password was deleted from the keychain
$$-25300errKCItemNotFoundthe password could not be found in the keychain
$$-50paramErrparameter error

Originated in

Troi Encryptor Plug-in 4.0

Compatibility

FileMaker Pro 16

Considerations

The password is safely stored in the keychain and it can be deleted from the keychain without the user needing to enter the (keychain) password. The keychain is unlocked when the user logs in into the operating system.
Be careful when using this function, a deleted password can no longer be retrieved.
If you specify an account and/or yourID combination for which no password exists, the plug-in returns error code $$-25300.

Example

Delete Password from Keychain [ Select ; $ErrorCode ; "John Deere" ]

This will delete the password for the account “John Deere” from the keychain.

Example 2

Delete Password from Keychain [ Select ; $ErrorCode ; "Sales" ; "Invoices|Notes|REC1001" ]

This will remove the password from the keychain which was stored with the account parameter “Sales” and the yourID parameter “Invoices|Notes|REC1001”.

Related script stepsScript step badge

Get Password from Keychain
Save Password to Keychain

Related functionFunction badge

Encr_DeletePasswordFromKeychain

Related topics

Troi Encryptor Plug-in online help (overview)


Online Help Page for Troi Encryptor Plug-in for 12 to 16 –> Delete Password from Keychain (encrp7325) 2017-0814 15:35:12