gf_delete — Delete an existing getfem object from memory
gf_delete(hobj I,[hobj J,hobj K,...])
gf_delete(hobj I,[hobj J, hobj K,...]) : delete an existing getfem object from memory. I should be a descriptor given by gf_mesh(), gf_mesh_im(), gf_slice() etc.
Note that if another object uses I, then object I will be deleted only when both have been asked for deletion.
Only objects listed in the output of gf_workspace('stats') can be deleted (for example gf_fem objects cannot be destroyed).
You may also use gf_workspace('clear all') to erase everything at once.
remark: instead of passing a list of handles, you may pass an array of object handles.