Module delete¶

delete(I, J=None, K=None, *args)

Synopsis: 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.