How to remove the data when hide

Hi, the Rules are working fine on the UI side. I am hiding one category based on some rules. But the data is not removing. How can I remove those data associated with the hidden controls?

[original thread by Nanda]

Hi @nandhu(nandhu) , unfortunately you can’t listen to rule triggers or changes of the ui schema at the moment. So in order to achieve what you want, you need to listen to data changes of the data model and change the data model manually if needed.

[Nanda]

Thanks @eneufeld