How do I remove drywall stuck between flooring and wall?
Keep it simple, use brute force.

I would just use a wide chisel and hammer to smash it up, then a large screwdriver or some such tool to scrape it out. Diagonal cutter or needlenose pliers would make short work of any nails encountered. Use a shop vac to then clean that slot.