delete bam server when it is not used