deleteTokenEx()
deleteTokenEx() deletes a token and returns the count of the number of tokens deleted.
Note
This method is overloaded to handle string and string arrays, and to account for the optional customData parameter.
!yaml
public SiteBean[] deleteTokenEx (string token, string table) public SiteBean[] deleteTokenEx (string[] tokens, string table)
Note
If your application calls insert(), get(), deleteToken(), or deleteValue() within a loop, make sure that it starts the token service outside of the loop. See See Sample: Starting the Token Service Outside of the Loop.
Request Parameters
Parameters | Data Types | Descriptions |
---|---|---|
token | string or string[] | A token value that 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, which is the number of rows deleted fetched from the SiteBean.
Exception
Passes an exception if a table is missing or a token is null or invalid.
Example
deleteTokenEx("5541997351273456", "CREDIT_CARD_NUMBERS")
The method does the following:
Creates the SQL statement that will delete the appropriate row from the token vault and return the count of deleted tokens.
Executes the SQL statement.