How to reset (delete all) from cloud sanbox data base

0
Hello. How to wipe all Data Base data from cloud sand box application?
asked
3 answers
5

Deploy a branch with no modules except System. All database tables should be deleted. After that deploy your normal developline again. 

answered
1

Hi Pavels, 

I think the easiest solution is to create a microflow that retrieves and deletes all the objects from the entities in your project.

Cheers,

Jeffrey

answered
1

Some java like this

 

.
.
.
var arr_mob=com.mendix.core.Core.getMetaObjects()
arr_mob.forEach(
    function(obj_mob){
        if(obj_mob.isPersistable()){
            var str_xpath="//"+obj_mob.getName();
            var arr_obj=com.mendix.core.Core.retrieveXPathQuery(context,str_xpath);
            com.mendix.core.Core.delete(root.getContext(),arr_obj)
        }else{
            //πŸ‘Œ
        }
    }
);
.
.
.
answered