/// <summary> /// Schedule a delete operation for the given path. /// </summary> /// <param name="ringMaster">Interface to ringmaster</param> /// <param name="path">Path of the node to be deleted</param> /// <param name="version">Version of the node</param> /// <returns>A <see cref="Task"/> that tracks execution of this method</returns> public static async Task ScheduleDelete(this IRingMasterRequestHandler ringMaster, string path, int version) { string stagingLocation = $"{GetScheduledDeleteRoot()}/{Guid.NewGuid()}"; await ringMaster.Move(path, version, stagingLocation, MoveMode.AllowPathCreationFlag); }