You cannot delete an accounting operation if there are references to it in delivery notes and payment documents.

To delete an accounting operation: