Function preexplorer::clean [−][src]
pub fn clean() -> Result<(), PreexplorerError>
Expand description
Removes generated artifacts
Inspired by the cargo clean
command, this methods removes all
artifacts from the target directory that preexplorer
has generated in the past.
Remarks
This method is particulary useful when you:
- run various versions of a script with identical ids.
- want to delete all previous records as they are no longer useful.
Errors
This function will return an error in the following situations, but is not limited to just these cases:
- The user lacks permissions to perform
std::fs::metadata
call on the relevant paths. - Either
std::fs::remove_file
orstd::fs::remove_dir
errors.