clear resource