Loading...

DELETE   https://api.3seventy.com/api/v2.1/account/{accountId}/content/{contentId}

Description

Deletes a content group.

Path Parameters

accountId integer The account ID which owns the content group. required
contentId integer The ID of the content group to remove required

C#


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Linq;
using ThreeSeventy.Vector.Client;
using ThreeSeventy.Vector.Client.Enums;
using ThreeSeventy.Vector.Client.Models;

public class Program
{

private static void Main(string[] args)
{

const int accountId = XXXX;

const int contentId = XXX;

var context = new T70Context();

var contentRepo = context.Repository<Content>(new { AccountId = accountId});

var item = contentRepo.Get(contentId);

contentRepo.Delete(item);

}

}