How to completely remove influence of bone to mesh .blend file

I created a rig for my mesh. I created control bones, but they have influence on the mesh. How can I completly remove the influence from a bone to the mesh?

I selected every single control bone and set the weight to 0 and painted over the whole mesh, but there is still a influence as you can see in the picture.
The easiest and most straight forward way is to uncheck Deform in bone properties (marked red on the image below). Second way is to delete from the mesh vertex groups named like the bones.