Sorry, another necro. Ran into the same problem, documents fix didn't help. Ended up adding code to set file attributes normal prior to deletions.
private static bool Backup()
{
//custom
string backups_root = Path.Combine(Core.BaseDirectory, "Backups")...