The cable will be “insulation displacement connections”. i.e.the wire is pressed between a pair of contact blades that cut the insulation. If it is really old, there could be screw terminals inside (very rare these days but I have seen some).
It sounds like it is “between rooms” rather than “from the outside into a room” so the possibility is it’s extension cabling and completely up to you to do with as you like. If it is the master socket and the master socket cabling then it is technically BT’s network and they don’t like you mucking about with it (legal stuff). The question becomes: “If you stuff it up and can’t get it back working again, who are you going to call?”
So:
1) consider your risk appetite
2) buy an IDC push down tool (~£1 plastic thing)
3) watch a youtube video on using IDC tool on BT type sockets
4) open up the box and take photos of which colour wires go where in the connectors
5) yank them out
6) pull wire
7) do DIY
8) consider how to put the wiring back together again
or….
1) work out it is an extension that doesn’t have any purpose in the modern home (DECT or digital voice or you use mobile phones), so go straight to step 4/5 in the above