gf_delete(I[, J, K,...])

Description :

Delete an existing getfem object from memory (mesh, mesh_fem, etc.).


gf_workspace, gf_mesh, gf_mesh_fem.

Command list :

gf_delete(I[, J, K,...])

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.