Delete useless resources