public void Delete()
{
if (FileHelper.FileSystem.File.Exists(_profilePath))
{
FileHelper.FileSystem.File.Delete(_profilePath);
}
// We only really need to delete the profile. If for
// some reason we fail to delete the sites directory
// that should be okay.
try
{
if (FileHelper.FileSystem.Directory.Exists(_sitePath))
{
FileHelper.FileSystem.Directory.Delete(_sitePath, true);
}
}
catch (IOException e)
{
Trace.TraceError("Failed to delete sites directory: {0}", e.ToString());
}
}