delete chart code