Is there a way to easily delete screens

I’ve created some screens for an entity. But now I’d like to remove them altogether from my project. Is there a way to remove screens and controllers from the project – refactoring all references out of the project to the screens and controllers? Of course, I could just delete the files, but that could possibly cause reference issues.
Thanks

Hi,
IntelliJ IDEA has the so called “Safe delete with usages search” option.
When you invoke deletion, it searches for usages of the element you’re deleting:
image

Jmix Studio plugin automatically deletes some standard references to the screen being deleted, such as main menu items.

If there are any other references to the screen in the code, you will be warned about them and will be able to review:
image
image