How to completely remove influence of bone to mesh
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.