fix delete instance sample