safe.srm¶
Secure file deletion utility.
| author: | Joe Joyce <joe@decafjoe.com> |
|---|---|
| copyright: | Copyright (c) Joe Joyce and contributors, 2016-2019. |
| license: | BSD |
-
exception
safe.srm.SecureDeleteError(message, stdout, stderr)[source]¶ Bases:
exceptions.ExceptionRaised when there is a problem securely deleting a file.
-
safe.srm.secure_delete(path)[source]¶ Securely delete file at
path.Parameters: path (str) – Path of file to delete Raise: SecureDeleteErrorif there are no secure deletion utilities found on the machine, or if the secure deletion utility returns a non-zero exit codeReturn type: None