nourish.dataset.Dataset.delete¶
-
Dataset.delete(*, force=False)¶ Clear the data directory. It adds a directory write lock before deletion during execution if the data directory exists.
- Parameters
force (bool) – If
True, delete the directory even if directory locks are present.- Raises
exceptions.DirectoryLockAcquisitionError – Failed to acquire the directory lock.
- Return type