It is impossible to modify a transaction after it has been broadcast to the network. However, it may be possible to replace it with a newer version.
If you're using Bitcoin Core, you can make it forget unconfirmed transactions by starting it with -zapwallettxes.
After that, you generate a transaction that uses at least one of the inputs of the previous transactions, set a decent fee, and broadcast it to the network. As your transaction gets confirmed, the first one becomes invalid because it is trying to spend inputs that have been spent already.
If you don't know which inputs you've used, you may want to send all your money to yourself to prevent that you pay twice due to both transactions confirming.
2
Note that
– Murch – 2017-06-04T18:51:43.100bumpfeeis only applicable to transactions that were sent with opt-in rbf (see changelog).