This guide shows how to revoke a from Virgil Services.
It may be helpful to review our Virgil Card Service Delete endpoint here for more examples.
Set up your project environment before you begin to revoke a Virgil Card, with the getting started guide.
In order to revoke a Virgil Card, we need to:
- Initialize the and enter Application (, , )
var virgil = new VirgilApi(new VirgilApiContext
AccessToken = "[YOUR_ACCESS_TOKEN_HERE]",
Credentials = new AppCredentials
AppId = "[YOUR_APP_ID_HERE]",
AppKey = VirgilBuffer.FromFile("[YOUR_APP_KEY_FILEPATH_HERE]"),
AppKeyPassword = "[YOUR_APP_KEY_PASSWORD_HERE]",
- Get Alice's Virgil Card by from
- Revoke Alice's Virgil Card from Virgil Services
// get a Virgil Card by ID
var aliceCard = await virgil.Cards.GetAsync("[USER_CARD_ID_HERE]");
// revoke a Virgil Card
Developers also can revoke a Virgil Card using Virgil CLI Commands.