code to clear duplicate plugin entries