'How to remove Smart Contract in NEAR Protocol?

I am new to blockchain and Near Protocol. I have created 2 smart contracts on Near Protocol. The first one was successfully done but when I try to deploy the second one, I have deployed it but when I try to call a method ('increment' in this case) it gives error. I looked for the error and they say that this error executed because I tried to deploy another smart contract. So how can I remove the first one? Or can I? Or should I? Thanks. The error is below:

ServerTransactionError: {"index":0,"kind":{"ExecutionError":"Smart contract panicked: panicked at 'Cannot deserialize the contract state.: Custom { kind: InvalidData, error: \"Not all bytes read\" }


Solution 1:[1]

This depends. Are you running on testnet or mainnet and do you need to transfer any assets. You can only deploy 1 smart contract per wallet and it seems that you need to delete the wallet to remove the contract afaik

You can use near delete accountName.networkName

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 JacksWastedLife