vice.yields.presets.remove¶
Delete a copy of yield presets previously saved by a call to vice.yields.presets.save.
Signature vice.yields.presets.remove(name, force = False)
New in version 1.1.0.
Parameters¶
- name
str
The name of the preset.
- force
bool
[defaultFalse
] If
True
, will not stop for user confirmation before removing the yield file once it’s found.
Raises¶
- RuntimeError
The preset module is not found
Another exception occurs in attempting to remove the yield file.
- IOError
The file does not exist
Example Code¶
>>> import vice
>>> vice.yields.presets.remove("example")
>>> from vice.yields.presets import example
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'example' from 'vice.yields.presets'
(/anaconda3/lib/python3.7/site-packages/vice/yields/presets/__init__.py)
See also
vice.yields.presets.save