mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Delete old mirrored files
This commit is contained in:
@ -320,4 +320,13 @@ public class Client
|
||||
{
|
||||
return (await _client.GetFromJsonAsync<ValidatedArchive[]>("https://raw.githubusercontent.com/wabbajack-tools/mod-lists/master/configs/forced_healing.json", _dtos.Options, token))!;
|
||||
}
|
||||
|
||||
public async Task DeleteMirror(Hash hash)
|
||||
{
|
||||
_logger.LogInformation("Deleting mirror of {Hash}", hash);
|
||||
var msg = await MakeMessage(HttpMethod.Delete, new Uri($"{_configuration.BuildServerUrl}mirrored_files/{hash.ToHex()}"));
|
||||
var result = await _client.SendAsync(msg);
|
||||
if (!result.IsSuccessStatusCode)
|
||||
throw new HttpException(result);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user