Removes data stored at a certain key.
Parameters
name — str|list[str], required
The key from which to remove data, or a list of such keys. If
funcStore.multi
isFalse
or if the other two arguments are left unspecified, this deletes the key. See the following two arguments otherwise.fname — str|list[str], optional
If
funcStore.multi
isTrue
, this allows the user to delete a specific element from the list, based on its__name__
(i.e.`example`
if the data was originally defined with `def example` or `class example`).Default value: None
removeall — bool, optional
By default, if
funcStore.multi
isTrue
andfname
is specified, this function will stop after the first instance of an element matching name. Settingremoveall=True
will remove all functions with the given name. This might be the case if multiple functions with the same__name__
are stored in the key.Default value: None
Return Value — bool|list[bool]
True
if a matching element was found to delete, False
otherwise, or a list of successes if a list was passed to name
and/or fname
.
Notes and Examples