You can do it one of two ways:
1.If it is okay for admins to continue being able to message then, set the setting personal message enabled groups to admins and remove all other groups.
2. If absolutely nobody should be able to message then create an empty closed group with no members then set the same setting to that group.