Command Block working after breaking it

Solution 1:

you could do /commandblocksenabled false and that would stop command blocks to execute their command and then break the block where the command block was changed