Loading...

DELETE   https://api.3seventy.com/api/v2.1/account/{accountId}/user/{username}

Description

Deletes a user from the account.

Path Parameters

accountId integer The account ID that the user belongs to. required
username string The ID of the user to delete. required

C#


using System;
using System.Collections.Generic;
using System.Linq;
using ThreeSeventy.Vector.Client;
using ThreeSeventy.Vector.Client.Models;

public class Program
{

private static void Main(string[] args)
{

const int accountId = XXXX;

const string userName = "XXXXXX";

var context = new T70Context();

var userRepo = context.Repository<User>(new { AccountId = accountId });

var item = userRepo.Get(userName);

userRepo.Delete(item);

}

}