Delete Method
Deletes the record from QuickBooks.
Syntax
qbobjectcontrol.DeleteRemarks
Delete causes the object to be deleted in QuickBooks. After this method is called, the values of all fields will be reset to their defaults.
The object deleted in QuickBooks is the one specified by the Id. This property may be assigned using AddProperty, by calling Get, or by assigning the value of QBResponseAggregate.
A typical example:
Object.Get("Floor plans") 'this will assign the Id Object.Delete()
Deleting list objects requires that QuickBooks be open in single-user mode. Transaction objects, however, may be deleted while QuickBooks is in any mode.
Use this method with caution, as there is no way to recover deleted objects.