/// <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>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteByIdAsync(this IFolders operations, long id, string ifMatch = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     (await operations.DeleteByIdWithHttpMessagesAsync(id, ifMatch, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
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>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteByIdAsync(this IFolders operations, long key, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteByIdWithHttpMessagesAsync(key, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }