delete unnessessary resources