It only works when analyzing a DataEngine data. If the path is not set, the default workspace will be disposed. Please be careful and ensure you DO want to dispose the workspace when you will call this method. It will cancel all running tasks (if any exists) with the specified workspace and remove locks from files. So after calling this method, you will be able to delete them.