The standard AC Server package includes the script delete_ado.sh
which you can use to delete
ADOs from the system.
Just pipe one or more ADO IDs into the script (and add -
):
acdba@acbox:~$ echo C0.TFN.0011.TEST | delete_ado.sh -
+++INFO+++ 20190412_21:28:46 @(#)ac_bl[7.3/$Revision: 47831 $]: Number of delivered transactions: 1 (1 successful)
+++INFO+++ 20190412_21:28:46 @(#)amd_pr[7.3/$Revision: 48207 $]: Number of status code descriptions loaded: 22
+++INFO+++ 20190412_21:28:46 @(#)amd_pr[7.3/$Revision: 48207 $]: Initialization complete. Using 4 threads for updating.
+++INFO+++ 20190412_21:28:46 @(#)amd_pr[7.3/$Revision: 48207 $]: Processing ,C0.TFN.0011.TEST,F, line 1
+++INFO+++ 20190412_21:28:47 @(#)amd_pr[7.3/$Revision: 48207 $]: Transaction :C0.TFN.0011.TEST,F, line 1: 1 row affected, 1 header affected, 62b logged, 0 delta suspects
+++INFO+++ 20190412_21:28:47 @(#)amd_pr[7.3/$Revision: 48207 $]: 1 record updated, 0 failed: 1 row affected, 1 header affected, 62b logged, 0 delta suspects, 0 messages
acdba@acbox:~$
This deletes both the static as well as the timeseries data for the given ADOs. Be careful, as there is no undo option!
Your installation may also include $AC_SYSTEM/local/bin/ac_delete_ado.sh
. This works just like the above.
However, since it uses multiple threads, it tends to be a better choice when you need to delete larger
numbers of ADOs.