Remove UI-Screen with CLI?


I created a edit and browse screen via cuba CLI,
as far as I know, cuba create some code automatically for this screens, but my question is,
what is the easiest way, to remove a screen?
For example, if I want to remove the editor screen?
Because I dont want to cause an error, if I try to remove some things manually?

Does anybody have an idea?


Hi @spamhater.alex,

When you scaffold anything using CLI it gives you clear idea what was created and what was modified, e.g.

cuba>screen edit 
? Choose entity > 
> 1
? Package name ( > 
? Screen id (stripe$Sample.edit) > 
? Descriptor name (sample-edit) > 
? Controller name (SampleEdit) > 
        created  modules/web/src/com/company/sampleapp/web/sample/
        created  modules/web/src/com/company/sampleapp/web/sample/sample-edit.xml
        modified modules/web/src/com/company/sampleapp/web-screens.xml
        created  modules/web/src/com/company/sampleapp/web/sample/

Simply revert changes made by CLI. It will not break anything.



Thanks so I will undo these things :slight_smile: