  Using the work of Fargues-Scholze, we prove a vanishing theorem for the
generic unramified part of the cohomology of local Shimura varieties of general
linear groups. This gives an alternative approach to vanishing results of
Caraiani-Scholze for the cohomology of unitary Shimura varieties.
