Sample code for 30+ languages & platforms
.NET Core C#

Akeneo: Delete Product

See more HTTP Misc Examples

Demonstrates how to delete product.

Chilkat .NET Core C# Downloads

.NET Core C#
bool success = false;

// This example requires the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.

Chilkat.Http http = new Chilkat.Http();

// Use your previously obtained access token.
// See Get Akeneo Access Token
http.AuthToken = "access_token";

http.SetUrlVar("productCode","123");

string respStr = http.QuickDeleteStr("http://pim.my-akeneo-site.com/api/rest/v1/products/{$productCode}");
if (http.LastMethodSuccess != true) {
    Debug.WriteLine(http.LastHeader);
    Debug.WriteLine(http.LastErrorText);
    return;
}

Debug.WriteLine("Response Status Code: " + Convert.ToString(http.LastStatus));
Debug.WriteLine("Response Body: " + respStr);