Resources cleaning