Check it is for bathroom/kitchen use (mold-resistant label)
Cure time
Follow the label for time before water contact
When to redo it
Silicone around the tub, between basin and wall, and where the kitchen counter meets the wall keeps water out of the gaps. Surface grime and mold sometimes clean off, but black stains that have spread into the silicone tend to come back after scrubbing. If the silicone has pulled away from the wall or cracked, water can get behind it and cause mold and odors inside, so stripping and redoing it is better. On the other hand, if water keeps leaking from below the gap, the problem may be pipes or waterproofing rather than silicone, so have the management office or a professional check first.
What you need
You need only a few tools, but having them ready lets you finish in one go. Silicone comes in many types, so check the package says it is for wet areas such as bathrooms and kitchens and whether it is labeled mold-resistant.
Bathroom/kitchen silicone and a caulk gun
Utility knife and a plastic scraper for removal
Masking tape
A finishing tool or rubber spatula
Rubber gloves, dry cloths, and an open window for ventilation
Removing the old silicone
New silicone does not bond well to old silicone, so do not go over it; remove as much as you can. Score along both edges with a utility knife, grab one end and pull it away in a long strip, then scrape off the thin film left behind. Hold the blade at a low angle and go carefully, because pressing hard on tile or the tub surface scratches it. Silicone removers are sold too; if you use one, follow the label on suitable surfaces, ventilation and protective gear. Treat any remaining mold as you would for mold removal, and never mix chlorine bleach with acidic cleaners.
Dry the surface thoroughly
Whether the job lasts depends heavily on how dry the surface is. Silicone applied to a damp surface does not bond well and soon lifts, and trapped moisture makes mold return. After cleaning, ventilate well and, if possible, keep water off the area for about a day. If you have only one bathroom, start when even the floor is dry rather than right after a shower. On greasy kitchen counters, wipe with mild detergent and remove every trace of water.
Applying and finishing
The secret to a straight line is masking tape. Setting the width with tape gives a neat finish even if your hand is unsteady.
Apply masking tape the same width on both sides of the gap
Cut the nozzle at an angle to match the gap width
Apply in one go at a steady pace without stopping
Smooth it in one direction with the tool or rubber spatula
Peel the tape away at an outward angle before the silicone sets
While it cures
Silicone skins over first and cures slowly inside. The time before it can get wet and the time to cure fully vary by product, so follow the package, and if unsure wait longer to be safe. Meanwhile, keep water off the spot and keep ventilating so the smell clears. Silicone has a strong smell during and right after application, so open windows and run the fan; if someone is sensitive to fumes or you have small children, have them stay in another room while you work. Wipe silicone off your hands with dry tissue before it sets.
Habits that make it last
Even fresh silicone grows mold if water sits on it for long. Squeegeeing water off walls and floor after a shower and running the fan long enough to dry the bathroom is the most effective upkeep. Do not leave shampoo bottles or soap on the silicone, and wipe the surface gently with mild detergent now and then. If mold keeps returning in the same spot or the silicone keeps coming loose, water may be leaking behind it, so have a professional check for defects or leaks. If you rent, tell the landlord before redoing it to avoid disputes.