i want to delete these two versions?

lakng
Tera Contributor

i dont want to see the versions here,

perviously there were no versions there. by mistake it got updated by me. 

then these versions are showing like this.

i dont want to see this.

there should be no versions.find_real_file.png

1 ACCEPTED SOLUTION

var gr = new GlideRecord('sys_update_version');
gr.get('9725bf11db9d6740e4d95740cf9619f0'); // pass the sys_id of those version one by one and run it in background script.
gr.deleteMultiple();

View solution in original post

13 REPLIES 13

version record generate once you made some changes that entity. it never changed suddenly/automatically

i would not suggest anything to delete from the production. 

you can test if UI ACtion is working fine then leave that. 

delete anything from the prod is not a good practice. but still you want to delete then you can delete those version entry. select the check box and delete 

Note: make sure this UI action is working fine. 

am not able to delete coz not able to click deletefind_real_file.png

let it be then. if everything is working fine then leave it as it is.

script can do that but i would not recommend to delete this by script on production .

var gr = new GlideRecord('sys_update_version');
gr.get('9725bf11db9d6740e4d95740cf9619f0'); // pass the sys_id of those version one by one and run it in background script.
gr.deleteMultiple();

i got this versions attached from 5 hrs onwards.

and before then, there is no versions there.

can i delete it?

and how to check. i dont know bout checking archive Ui action.

nothing captured with my name till now with my name as i updated