Typically putting the media through a 0.22 um filter is sufficient to remove whole cells. Depending on what your sample looks like, it might be worth it to put it through a sieve of some sort first, to remove bulk biofilm, so that the filter does not clog up. Alternatively, you could do a high speed centrifugation to spin the bacteria out of suspension.