Erp next GL deletion

I have created some demo sales order and demon sales invoice but i couldnt delete sales invoice because GL entry and Ledger entry is there icouldnt delete GL entry

Turn on the “Delete Accounting and Stock …” option in the accounts settings, and then try deleting the sales invoice

For more information, check here