The images you posted are not showing so please fix it.
Secondly, this method is probably not going to work as at the moment you broadcast the second transaction it will be rejected because of double spending.
What you did here is just deleting the transaction locally to let your wallet create a second transaction using the same inputs. However, the first transaction still exist in other nodes' mempools.
The only way this would work is if you send the signed transaction directly to cooperating miner or when the first transaction gets dropped from the network,s mempool.