Skip to content
This new developer portal is under construction. For complete documentation, please refer to the old developer portal.

Deleting assets

Authorized by: Asset Manager

Created assets can be destroyed only by the asset manager account. All of the assets must be owned by the creator of the asset before the asset can be deleted.

1
"""
2
Send an asset destroy transaction destroying an asset with asset id 1234
3
All of the assets must be owned by the creator of the asset before the asset can be deleted.
4
5
Parameters for destroying an asset.
6
- sender: The address of the account that will send the transaction
7
- asset_id: ID of the asset
8
"""
9
txn_result = algorand_client.send.asset_destroy(
10
AssetDestroyParams(
11
sender=account_a.address,
12
asset_id=1234,
13
)
14
)

See also