Delete a Content Area
Marketing Cloud has a new model for storing, finding, managing, creating, sharing, and distributing all content-related objects. Access the objects created with the new Content Builder tools using the REST API. Your existing SOAP API integrations only function with the Classic tools in the user interface.
Use the Delete method to delete a content area. Specify a unique identifier in the props properties to identify the content area to update:
Ruby
require 'fuelsdk'
myClient = FuelSDK::Client.new {'client' => { 'id' => CLIENTID, 'secret' => SECRET }}
contentarea = FuelSDK::ContentArea.new
contentarea.authStub = myClient
contentarea.props = {"ID" => "151515151"}
results = contentarea.delete
p resultsPHP
require('ET_Client.php');
$myclient = new ET_Client();
$contentarea = new ET_ContentArea();
$contentarea->authStub = $myclient;
$contentarea->props = array("ID" => "151515151");
$results = $contentarea->delete();
print_r($results);Python
import ET_Client
myClient = ET_Client.ET_Client()
contentarea = ET_Client.ET_ContentArea()
contentarea.auth_stub = myClient
contentarea.props = {"ID" : "151515151"}
results = contentarea.delete()
print resultsCSharp
using FuelSDK;
ET_Client myclient = new ET_Client();
ET_ContentArea contentArea = new ET_ContentArea();
contentArea.AuthStub = myclient;
contentArea.ID = 151515151;
DeleteReturn response = contentArea.Delete();
Console.WriteLine("Delete Status: " + response.Status.ToString());Java
Documentation for the Fuel Java SDK can be found at http://salesforce-marketingcloud.github.io/FuelSDK-Java/