It depends on the model of the vacuum cleaner. Generally it is preferred to remove filters before vacuuming water, if not removed always wash the filter and dry it to prevent growth of microorganisms.