Skip to main content

Delete

C#
1
2
3
public void Delete() { }
C#
1
2
3
4
5
6
7
8
9
10
11
12
13
using Zengenti.Contensis.Management; // Create a client var client = ManagementClient.Create(); // Mimic a guid value var groupId = Guid.Parse("c5da1719-cb3f-4f2e-927b-f678293258f3"); // Get the group Group group = client.Security.Groups.Get(groupId); // Delete the group group.Delete();

Delete async

C#
1
2
3
public async Task DeleteAsync() { }
C#
1
2
3
4
5
6
7
8
9
10
11
12
13
using Zengenti.Contensis.Management; // Create a client var client = ManagementClient.Create(); // Mimic a guid value var groupId = Guid.Parse("c5da1719-cb3f-4f2e-927b-f678293258f3"); // Get the group Group group = await client.Security.Groups.GetAsync(groupId); // Delete the group await group.DeleteAsync();

Still need help?

New support request