The carpet is normally the first thing to be put down when building a caravan, and the furniture is fitted on top of it.
It is not practically possible to remove it all, so most people cut as close to the furniture as possible and fit vinyl in the space vacated by the carpet.
Normally it is not glued down, but may be stuck if the van is well used.
Use a wide bladed paint scraper to help remove it.