added delete_output and delete_plots funcitons