Depends to the strain. In my case the EPS of the cyanobacteria can be looses or strongly attached as caspule. In this last case we use pulses ultrasound or Glass beats and vortex.
for the case of bacteria such as salmonella and neisseria use sodium deoxycholate detergent, and for brucella sosium lauryl sarcosinate and tris-EDTA with sonication and ultrcentrifugation at 100000 xg