bitcoin core – How to transfer the balance of the BTC when I have a private key?

Yes, but you must first import your private key into the wallet application. Some mobile applications support this feature. The portfolio is the only one I know, under menu / address / + (plus button). This will open your camera to scan your private QRCode key in WIF format (51 characters).