Sample code for 30+ languages & platforms
CkPython

Akeneo: Delete Product

See more HTTP Misc Examples

Demonstrates how to delete product.

Chilkat CkPython Downloads

CkPython
import sys
import chilkat

success = False

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

http = chilkat.CkHttp()

# Use your previously obtained access token.
# See Get Akeneo Access Token
http.put_AuthToken("access_token")

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

respStr = http.quickDeleteStr("http://pim.my-akeneo-site.com/api/rest/v1/products/{$productCode}")
if (http.get_LastMethodSuccess() != True):
    print(http.lastHeader())
    print(http.lastErrorText())
    sys.exit()

print("Response Status Code: " + str(http.get_LastStatus()))
print("Response Body: " + respStr)