Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

delete_ledger

delete_ledger(**kwargs)

Deletes a ledger and all of its contents. This action is irreversible.

If deletion protection is enabled, you must first disable it before you can delete the ledger. You can disable it by calling the UpdateLedger operation to set the flag to false .

See also: AWS API Documentation

Request Syntax

response = client.delete_ledger(
    Name='string'
)
Parameters
Name (string) --

[REQUIRED]

The name of the ledger that you want to delete.

Returns
None

Exceptions

  • QLDB.Client.exceptions.InvalidParameterException
  • QLDB.Client.exceptions.ResourceNotFoundException
  • QLDB.Client.exceptions.ResourceInUseException
  • QLDB.Client.exceptions.ResourcePreconditionNotMetException