code: public static void deleteInstanceResources( Instance instance )	throws IOException {
  		File dir = InstanceHelpers.findInstanceDirectoryOnAgent( instance );
  		Utils.deleteFilesRecursively( dir );
  	}
docs: Deletes the resources for a given instance.
  @param instance an instance
  @throws IOException if resources could not be deleted