deleteTokenEx()
Use the deleteTokenEx()
API to delete specified tokens and to return the exact number of tokens deleted. This method is overloaded to handle strings and string arrays.
Syntax
Request Parameters
Parameters | Data Types | Descriptions |
---|---|---|
token(s) | string or string[] | A token corresponds to an encrypted value, or an array of tokens. |
table | string | This is the Token Vault name and it must be in CAPITAL LETTERS. |
Returned values
Returns the array of SiteBean. Refer to SiteBean Class for more details.
Exception
Throws TokenException
:
If table or other parameters are missing or invalid.
If there is a problem with connecting or using the Key Manager or the database.
Example
In background, an SQL statement is created and executed, which deletes the 5541997351273456
token from the CREDIT_CARD_NUMBERS
table.