Deleting useless resources