Hi,
If your line item is not yet serving, then you can delete it through
DeleteLineItems action method. You can refer to an example
here (in Java), just change the
action method being used to DeleteLineItems.
Let me know if you have further clarifications.
Thanks,
Vincent Racaza, DFP API Team