/// <summary> /// Delete an existing subaccount. Any email related to the subaccount will be saved, but stats will be removed and any /// future sending calls to this subaccount will fail. /// <see cref="https://mandrillapp.com/api/docs/subaccounts.JSON.html#method=delete">Mandrill API Documentation</see> /// </summary> /// <param name="request">The request.</param> /// <returns>the information for the deleted subaccount</returns> public async Task <SubaccountInfo> DeleteSubaccount(DeleteSubAccountRequest request) { const string path = "subaccounts/delete.json"; SubaccountInfo resp = await Post <SubaccountInfo>(path, request).ConfigureAwait(false); return(resp); }
/// <summary> /// Delete an existing subaccount. Any email related to the subaccount will be saved, but stats will be removed and any /// future sending calls to this subaccount will fail. /// <see cref="https://mandrillapp.com/api/docs/subaccounts.JSON.html#method=delete">Mandrill API Documentation</see> /// </summary> /// <param name="request">The request.</param> /// <returns>the information for the deleted subaccount</returns> public async Task<SubaccountInfo> DeleteSubaccount(DeleteSubAccountRequest request) { const string path = "subaccounts/delete.json"; SubaccountInfo resp = await Post<SubaccountInfo>(path, request); return resp; }