If you talk about uninstalling your program, you can do, for example
If File.Exists (File.DirDocuments, "Test") = False Then Log ("First time or after uninstall") Else Log ("Not after uninstall")
File.MakeDir (File.DirDocuments, "Test")
When user uninstalls your app, File.Documents will be removed.