Remove all unused resources from an android project

You can easily search for unused resources from Android Studio. Just press CtrlAltShifti and type “unused resources” (without quotes). That will execute lint. Super easy way to run lint commands (and other stuff from IDE).

OR

In Android Studio Menu > Refactor > Remove Unused Resources…

Select the resources you want to remove. You can exclude resources you want to keep by right-clicking on the resource item.

Use Do Refactor to remove all Resources at once.

Update: use OptionShifti for mac

Leave a Comment