Delete an invoice item 

Billing
Invoice Items
Delete an invoice item

Deletes an invoice item, removing it from an invoice. Deleting invoice items is only possible when they’re not attached to invoices, or if it’s attached to a draft invoice.

Parameters

No parameters.

Returns

An object with the deleted invoice item’s ID and a deleted flag upon success. Otherwise, this call returns an error, such as if the invoice item has already been deleted.

DELETE /v1/invoiceitems/:id
stripe.Key = "sk_test_BQokikJ...2HlWgH4olfQ2sk_test_BQokikJOvBiI2HlWgH4olfQ2"
params := &stripe.InvoiceItemParams{}
result, err := invoiceitem.Del("ii_1MtGUtLkdIwHu7ixBYwjAM00", params)
Response
{
"id": "ii_1MtGUtLkdIwHu7ixBYwjAM00",
"object": "invoiceitem",
"deleted": true
}