Are you changing your whole filter? If so, keep the old media. If the filter's a different size so the old media would render it less efficient, run both filters in the same tank for a week. This way some of the good bacteria from the old filter will migrate to the new. Then, after the week or two, discontinue the old filter. Don't add any enw fish for another week though so that the new media has a chance for all the bacteria in it to multiply till there are enough to deal with your bioload.
Are you changing the media? Then don't. Unless it's actualy falling apart, you don't need to ever replace it. Just rinse the debris out in old tank water (from a water change).
Keep in mind that, regardless of what you do, if you don't have a source of ammonia in the tank (eg fish waste or pure ammonia), the bacteria will begin to starve and you'll end up with an un-cycled tank all over again.