You can't effectively rinse your bag if it's attached to your tubing. Do not replace your catheter tubing if you intend to clean your bag. Wait until after the bag is fully dry to reattach your tubes. Mix 2-3 drops of mild detergent like dish soap into enough warm water to fill your bag. Pour the soapy solution into the bag and squish it around, making sure you get into the corners. Then, open the valve to drain the bag fully of all the soapy solution and suds. Mix a solution of 1 part white vinegar with 3 parts warm water. Funnel this solution into your bag and seal your bag off. Let your bag soak for 20 minutes.  You should always rinse out the catheter bag before you reuse it. You should also rinse out the leg bag and let it dry if you are switching to a large catheter bag for the night. You should clean the leg bag every day if you use it daily and replace it with a new bag once a month. After your bag is done soaking, drain the vinegar solution out completely. Then, fill your bag with cold water and let it run through the bag's drain to completely remove the vinegar solution. Rinse your bag 2-3 times to get out all the vinegar wash. Squeeze as much water out of the bag as possible. Then, hang the bag up with the valve open so that additional moisture can drain out. Your bag should be completely dry before you reuse it. If you cannot hang your bag up for the moment, wipe it down with a clean, dry towel or paper towel.

Summary:
Keep the bag detached from your catheter tubing. Pour a solution of soapy water into your bag. Soak your catheter bag with vinegar diluted in water. Rinse your bag with cold water. Hang the bag up to dry.