Remove useless resources