/// <summary>
 /// Deletes a folder. Succeeds only if no entities or user associations
 /// exist in this folder or any of its descendants.
 /// </summary>
 /// <remarks>
 /// Required permissions: (Units.Delete - Deletes any folder) and
 /// (SubFolders.Delete - Deletes folder only if user has SubFoldersDelete
 /// permission on it).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// key: Id
 /// </param>
 /// <param name='ifMatch'>
 /// If-Match header
 /// </param>
 public static void DeleteById(this IFolders operations, long id, string ifMatch = default(string))
 {
     operations.DeleteByIdAsync(id, ifMatch).GetAwaiter().GetResult();
 }
Beispiel #2
0
 /// <summary>
 /// Deletes a folder. Succeeds only if no entities or user associations
 /// exist in this folder or any of its descendants.
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Folders or Folders.Write.
 ///
 /// Required permissions: (Units.Delete - Deletes any folder) and
 /// (SubFolders.Delete - Deletes folder only if user has SubFolders.Delete
 /// permission on it).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='key'>
 /// </param>
 public static void DeleteById(this IFolders operations, long key)
 {
     operations.DeleteByIdAsync(key).GetAwaiter().GetResult();
 }