Dear raneamey,
Please open "\CuteSoft_Client\Gallery\Popup\Default\Code.js", you can find related code:
Remove Category:
this.Confirm(FormatText(GalleryLocalize.CONFIRM_CLICK_DELETECATEGORY,category.Title||GalleryLocalize.DEFAULTCATEGORYNAME),function(res){
if(!res)return;
this.Browser.AsyncDeleteCategory({CategoryID:category.CategoryID});
},this);
This snippet remove category.
Create Category:
this.Browser.Prompt(GalleryLocalize.PROMPT_TYPECATEGORYNAME,function(newname){
if(!newname)return;
this.Browser.AsyncCreateCategory({Title:newname});
},this);
Update Category:
this.Prompt(GalleryLocalize.PROMPT_TYPECATEGORYNAME,function(newname){
if(!newname)return;
this.Browser.AsyncUpdateCategory({CategoryID:category.CategoryID,Title:newname});
},this,null,category.Title);
Thank you for asking