Cut it with a jigsaw or hacksaw. It is attached to the wall with nails or screws.
MDF skirting boards are made of small wooden sawdust, glued together by a special solution, giving them stiffness. Such a skirting board is used for floors from linoleum, laminate, ceramic tiles, plank wood, etc. D.