I have tried this:
function burn(uint256 tokens) public returns(bool){
require(balances[msg.sender] >= tokens);
balances[msg.sender] = balances[msg.sender].sub(tokens);
_totalSupply = _totalSupply.sub(tokens);
Burn(msg.sender, tokens);
}
but this code will only burn the tokens by the address owner. I want the contract owner to be able to burn all the tokens and making totalSupply to be 0.