How to Delete Sales invoice only if on DRAFT

Thanks for the reply…
But my case was based on this that I shared

The reason is when setting up many companies having to to to each role while having a button that will allow the document to be deleted only if on DRAFT while the cancelled ones are not until this option is removed or unticked.