I want to sorta "undeploy" smart contract as it was not deployed ever. If it is possible, I hope it will cleanup account's RAM. And I'm not talking about freezing .
cleos set contract --help
Specifically you want
You are required to manually clear the contract tables if you no longer want the data. Clearing a contract with existing data will not remove the RAM used to store the data in tables.