Hi XXXXXX;
The best way is to use a heat gun and a wide putty knife.
Pull the carpet up at a corner and begin heating the glue with the heat gun. Use the putty knife to scrape up what you can of the glue while it is still warm.
Having a helper to pull back on the carpet makes the job go much faster.
Please post any other concerns here.
Best, THS
Jack of all trades Master of a few.
#1 Home Improvement Expert. Over 30 years experience in construction, and home repairs