Sample code for 30+ languages & platforms
Visual Basic 6.0

Akeneo: Delete Product

See more HTTP Misc Examples

Demonstrates how to delete product.

Chilkat Visual Basic 6.0 Downloads

Visual Basic 6.0
Dim success As Long
success = 0

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

Dim http As New ChilkatHttp

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

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

Dim respStr As String
respStr = http.QuickDeleteStr("http://pim.my-akeneo-site.com/api/rest/v1/products/{$productCode}")
If (http.LastMethodSuccess <> 1) Then
    Debug.Print http.LastHeader
    Debug.Print http.LastErrorText
    Exit Sub
End If

Debug.Print "Response Status Code: " & http.LastStatus
Debug.Print "Response Body: " & respStr