Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Delete an archive table

lonesoac01
Giga Guru

Hello all,

 

    How can I delete the table of: ar_u_product_incident?  I have already deleted all of the records, but I am not finding the ability to just delete the table.

 

Thank you.

3 REPLIES 3

Mike_R
Kilo Patron
Kilo Patron

I think archived tables are read only. I would suggest deactivating the archive rule and then open a ticket with support to see if they can delete the table.

I could not find the archive rule at all.  I found the article of: https://docs.servicenow.com/bundle/sandiego-application-development/page/app-store/dev_portal/API_re...

and it gave me the commands of:

var tu = new TableUtils();
tu.dropTableAndExtensions("ar_u_product_incident");

 

I ran the commands and it looks like the table was deleted.

lonesoac01
Giga Guru

Thank you so very much for the reply!  I will do as you note and report back.