How do you delete an NFT?
What does it mean to burn an NFT and how to do it through Etherscan
Short answer: You can't technically delete an NFT on the blockchain. Once deployed, a record of it will always exist unless the entire network goes down.
Long answer: Even though you can't delete an NFT, you can technically "burn" an NFT. Burning an NFT sends the NFT to a null or "burn" address. While the NFT still exists on the blockchain, it is effectively out of circulation and distribution. This method is proper when you want to reduce the supply of a token, remove spam NFTs that appeared in your wallet (be careful interacting with any unknown NFTs), or vacate an asset you accidentally created.
Examples of burn addresses:
- General: 0x0000000000000000000000000000000000000000
- $SHIB: 0x000000000000000000000000000000000000dead
Looking at these addresses on Etherscan, you will notice they hold large amounts of tokens and transactions.
Unfortunately, it costs gas fees to send an NFT to a burn address because you are performing a transaction.
Keep in mind that depending on the NFT specs, the deletion method will differ. With ERC-721 NFTs, you will be burning a specific token. In contrast, with ERC-1155, you will be burning a certain amount of those tokens. Also, note you can only delete NFTs owned by your wallet address.
How to burn an ERC-721 NFT through EtherScan
Head to Etherscan and paste in the NFT contract’s address in the search bar and enter.
Note: If your contract is not on the Ethereum main net, you will have to switch to the correct version of Etherscan. Click on the button with the 'b' on it to view other chains.
You can see a history of transactions, contract balance, and other data here.
Navigate over to the contract tab. Here you can view the contract's code to read and write effectively.
Click on ‘Write Contract’ to pull up a list of functions we can write to.
Connect your wallet by clicking ‘Connect to web3’
Find the 'burn' function on the list and enter your token ID. Hit write, and it will prompt you to confirm a transaction.
After you burn the NFT, a button will appear with
view your transaction
where you can see the transaction that took place to burn the NFT.
How to burn an ERC-1155 NFT through EtherScan
The process is very similar to the one above, except this time, you will be entering the address, token id, and the number of tokens you want to burn.
Why burn and not transfer?
If you're curious like me, you may be wondering what the difference is between using the burn()
function and simply transferring an asset to a burn address. Some contracts may not let you use a transfer()
function due to convention and also preventing coins/assets from being removed from circulation. Some contracts may also take additional actions when you call the burn()
function.