Delete Sheet Without Prompting

In LibreOffice Calc, is there a way to delete a sheet without the pop-up confirmation? I’d like to write a macro that deletes a sheet silently.

from Macros/Basic/Calc/Sheets#Delete - The Document Foundation Wiki

  sheets = ThisComponent.Sheets
  sheets.removeByName("Sheet1")

and on this topic :

I guess Apache OpenOffice Community Forum - [Solved] Macro to delete sheet - (View topic)

That’s what I was looking for! Thank you!