<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/134975>134975</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clangd won't clean old pch files
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Abbyyan
</td>
</tr>
</table>
<pre>
With clangd config `--pch-storage=disk`, the pch files will store under the dir which is specified by `"TMPDIR", "TMP", "TEMP", "TEMPDIR"` as described by [issue 255](https://github.com/clangd/clangd/issues/255). But a few months after modified `TEMPDIR`, I found the data disk is filled with pch files. Pch files 5 mouths ago has not been cleaned up yet, which occupying 300G of disk. Learned from [issue 1957](https://github.com/clangd/clangd/issues/1957), I want to know if there any progress in cleaning up pch files please. Thanks a lot.
ps, `--pch-storage=memory` is not set because sometimes memory will explode even with `-j=4`.

</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyklM2OpDYQx5_GXEogYwwMBw4z6XQ0UiKtopVyNnYZvGNsZJvp9NtHhs7OJJGSQ0645Pr6_6qMiNHMDnEk7QtpL4XY0-LD-DxN97twxeTVffzNpAWkFW5WIL3TZgbS0bLc5FLG5IOYkTQXZeIb6ShhP0BaEDa5gDYWI9yMtZD9EHanMBzXygS4LUYuYCLEDaXRBhVMdzhysK-_fLm8_koYy_lO-5Px49-th29HQURQGGUw0yNd-2Ji3BFY25L2QtjTktIWSfNM2JWw62zSsk-V9Cth11Pk58MRGwm75nA2VPCyJxCg8Qard2mJIHTCAKtXpwLS0T8bOmG8gva7U6dqkQRkUFm1Ntaiglum-51WBV--g2th9ftRYvawiAjOJ5gQHUiLwqGCfYM7plzlZOml3Le7cTM0lP4EXh_FKvgZRcj-Ovj1g0g9tP3_QXLEs-EUeRMuQfLw5vwNjM5yA4Jwd9iCnwPGCObReO5v3z5tyGZRRKwAvi7CvUUQYH2qCH3e4jHjfy7biqsP9zxvc2KJmNFIsUeE6FdMZsUIp9u5gfj7Zr1CwHd0J_Sc9xtpLpx0NFcjrCbty-uaS_wXlj1iKEVKQi4rupRxiBjxOPRaNXISbflEZVNywWk56HYqFeW1UH036SfM3OhzocZGDc0gChzrnvP6ifOuL5aRYqd4L6ZBdlzwrqei1f2khqaTnOqaFmZklLWU04H2vKZdhXU3DFhzKvQwqKYlnOIqjK2sfV8rH-bimNtYN3zo28KKCW08Xj1jDm9w3OY31F6KMOagctrnSDi1Jqb4kSaZZHF8_A5u3hHWp3Ou4K36mGqxBzv-C8Gc8PEpt-C_oUx_Wa6zz_eR_REAAP__H0p6Rw">