delete unnused reference