user90299: Does pruning node keep old wallet's transactions? For example I need to use the gettransaction API to retrieve a wallet's transaction in a deleted block, should I use the pruning mode? I cannot find any document about it, 
Thanks.   

user208: Yes, it does.
Pruning only affects the blockchain/validation logic. The wallet always maintains a copy of all transactions relevant to it (including e.g. unconfirmed transactions that the validation logic does not know about).

90299: <p>Does pruning node keep old wallet's transactions? For example I need to use the <code>gettransaction</code> API to retrieve a wallet's transaction in a deleted block, should I use the pruning mode? I cannot find any document about it, 
Thanks.   </p>
 208: <p>Yes, it does.</p>

<p>Pruning only affects the blockchain/validation logic. The wallet always maintains a copy of all transactions relevant to it (including e.g. unconfirmed transactions that the validation logic does not know about).</p>
