You can use "abandontransaction" command in bitcoin-cli to remove that transaction as if it didn't happen since it is not included in no blocks, neither it is in the mempool.
You should investigate though why it didn't get broadcasted to the network.
Are you sure bitcoind is connected to the network?
Use getpeerinfo command to get the list of your Bitcoin peers with bitcoin-cli.
You should have 8 outbound peers.
I'm sure, bitcoind is connected to the network.
Strange.. "abandontransaction" refunded my balance.
Thanks.
getinfo:
{
"version": 160200,
"protocolversion": 70015,
"walletversion": 159900,
"balance": xxx,
"blocks": 543617,
"timeoffset": 0,
"connections": 29,
"proxy": "",
"difficulty": 7152633351906.413,
"testnet": false,
"keypoololdest": 1533222870,
"keypoolsize": 1000,
"paytxfee": 0.00000000,
"relayfee": 0.00001000,
"warnings": ""
}
Why "paytxfee": 0.00000000 ? May be it's reason..