public static bool DeleteDirectory(string directoryPath) { return(LocalDataStorage.DeleteDirectory(directoryPath)); }
/// <summary>Deletes all modfiles and binaries from the cache.</summary> public static bool DeleteAllModfileAndBinaryData(int modId) { string path = CacheClient.GenerateModBinariesDirectoryPath(modId); return(LocalDataStorage.DeleteDirectory(path)); }
/// <summary>Delete's a user's avatars from the cache.</summary> public static bool DeleteUserAvatar(int userId) { string path = CacheClient.GenerateUserAvatarDirectoryPath(userId); return(LocalDataStorage.DeleteDirectory(path)); }
/// <summary>Deletes all of a mod's data from the cache.</summary> public static bool DeleteMod(int modId) { string modDir = CacheClient.GenerateModDirectoryPath(modId); return(LocalDataStorage.DeleteDirectory(modDir)); }