Remove UI-Screen with CLI?

Hi,

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?

Thanks

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. com.company.stripe.entity.Sample
> 1
? Package name (com.company.sampleapp.web.sample) > 
? Screen id (stripe$Sample.edit) > 
? Descriptor name (sample-edit) > 
? Controller name (SampleEdit) > 
        created  modules/web/src/com/company/sampleapp/web/sample/SampleEdit.java
        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/messages.properties

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

Regards,
Aleksey

ok,

Thanks so I will undo these things :slight_smile: