Can a Transaction Be Removed from the Mempool?
Yes, a transaction can be removed. This happens if it is included in a confirmed block, if it is replaced by a higher-fee transaction from the same address (RBF), or if it simply expires after a long period of waiting.
Different nodes may have different expiration policies.