@hosseinimr93 and @o_e_l_e_o:
What if:
1. I remove the local transaction from the sending wallet
2. I spend all the coins
3. Can later one of the nodes which has my transaction actually complete it? If yes, then what happens?
If the second transaction is confirmed then the previous one will become invalidated and will be removed from the mempool.
Then you may wonder what if both the TXs included in the same block, like I did and here is why it will never happen explained by o_e_l_e_o
If both transactions are valid then both transactions can be included in the same block too if the fee is used in the same range then what happens?
The default behavior of a node is never have two or more conflicting transactions in its mempool. When it accepts a replacement, it evicts the original. As such, it would never create a candidate block which contains two conflicting transactions. Should some mining pool edit their software and accidentally mine a block containing conflicting transactions, all other nodes on the network would reject it as being invalid.