Do you have your own HVAC unit for your apartment? That is typically the way it is done. Smoke will find a way to your apartment, and is one of the joys of townhouse, condo, and apartment living.
One suggested solution is an Ozone generator. My real estate wife and her managing broker will often use these to clear up unpleasant odors in homes before they go on the market. Of course you need to clean the offending items or the smell will return right after you turn off the machine. They certainly have mixed reviews here is the EPA on the subject:
Ozone Generators that are Sold as Air Cleaners | US EPA
.
Air Circulation & Purification
If weather permits, keep windows and doors open for as long as is practical. Use fans to encourage air circulation – have one fan blowing air from outside on one side of the room, and put another fan across the room to exhaust the air outside. An air purifier with a HEPA filter can help remove odor-causing molecules. If the odor remains after you air out your home, place activated charcoal or bowls of white vinegar (or even apple cider vinegar) around the rooms to absorb odors. Replace the charcoal or vinegar every few days. Be wary of scented “odor removal” products, which may just mask the smell instead of removing it.
Homeowners should also replace HVAC air filters. Your home’s air filters help remove odor-causing molecules, and they work best if they’re replaced every two to three months. Consult with the furnace or AC unit manufacturer to find a filter that may help with odor removal (e.g., charcoal or HEPA filters). You should also inspect your ducts for any dust or debris that may contain smoke molecules; this may be contaminating the fresh air in your home as it travels down your ducts. If you see buildup, hire a professional to
clean your ducts.
Ozone Generator
If smoke odor still lingers after you complete all these steps, an ozone generator is your next best option. Ozone is a powerful cleanser and is very effective at eliminating odors. Ozone generators create activated oxygen. By oxidizing the smoke molecules, they can eliminate the smoke smell entirely (if used properly). Homeowners can rent or purchase ozone generators from their local hardware store. Follow the manufacturer’s recommendations, which usually involve leaving the machine running in a closed room for a specific period of time.