Can someone use RBF to reverse transaction on bitcoin core and electrum wallet? Or only used to pump fee? Or, it is done by another means?
With RBF enabled, one can spend the inputs of the initial transaction again. The transaction itself cannot be deleted from the mempool or reversed. Electrum will only allow you to bump the fee, but you can remove the transaction manually by editing the wallet file (this will allow you to create a conflicting transaction) or you can sign a transaction spending the same inputs with a higher fee beforehand and broadcast it after the transaction you want to replace. I haven't tested it out on Bitcoin Core. You probably need to use
-zapwallettxes parameter. Edit:
Bitcoin Core makes making Full RBF transactions very easy. Simply go to the transactions list, right click the transaction that is stuck, and choose the "Abandon Transaction" option.
If that option is greyed out, then you must go to the Bitcoin Core datadir and delete the mempool.dat file. Then restart Bitcoin Core with the -walletbroadcast=0 option and then you should be able to use "Abandon Transaction".
If the above two options fail for some reason, then you can start Bitcoin Core with the -zapwallettxes option to clear all unconfirmed transactions from your wallet.
You could also try using
wallet.remove_transaction("txid") in the Electrum's console instead of editing the wallet file.