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 (, , )
key_file_content = open("[YOUR_APP_KEY_FILEPATH_HERE]", "r").read()
raw_private_key = VirgilCrypto().strtobytes(key_file_content)
creds = Credentials(
context = VirgilContext(
virgil = Virgil(context=context)
- Get Alice's Virgil Card by from
- Revoke Alice's Virgil Card from Virgil Services
# get a Virgil Card by ID
alice_card = virgil.cards.get("[USER_CARD_ID_HERE]")
# revoke a Virgil Card
Developers also can revoke a Virgil Card using Virgil CLI Commands.