Well, there really isn't a vector equivalent of envi_file_mng. Here's something that could work.
Let's say you have an EVF file called "test.evf", which is currently open and has an evf_id. To remove and delete it, you could try the following:
;Close the EVF file
envi_evf_close, evf_id
;String path to file you want to delete (the same string you used when you originally created the file
;using ENVI_EVF_DEFINE_INIT). I'm hard-coding it here, but it might already be a string variable.
evf_file = 'c:\test_folder\test.evf'
;Create a string path for the associated DBF file--if there is one
dbf_path = file_dirname(evf_file, /mark_directory)
dbf_base = file_basename(evf_file, '.evf')
dbf_file = dbf_path+dbf_base+'.dbf'
;Delete the EVF and DBF files
file_delete, evf_file
file_delete, dbf_file
You can ignore the path building stuff and the file_delete for the DBF if you only have an EVF file. In that case, skip right to file_delete, evf_file.
|