Yusuf, there are discussions here why manually delete one ticket is not a good idea and not Supported and I think we all agree with that. With that, if you really want to manually delete one ticket willing to take some risks, I recommend you take a look at itil_arcpur_cfg.xml file in the sdm-root\site\cfg folder. This file gives you all the relations on what you would need to clear its references when you manually delete one ticket. For example, you will see"
<main_obj>
<name>call request</name>
<internal_name>call request</internal_name>
<factory>cr</factory>
<default_query>type = 'R' AND active=0</default_query>
<child>
<name>alg.call_req_id</name>
</child>
<child>
<name>cr_wf.cr</name>
<extattr ref_attr="id">
<name>attached_sla._mapped_cr_wf</name>
</extattr>
</child>
<child>
<name>cr_prp.owning_cr</name>
</child>
<child value="persid">
<name>atev.obj_id</name>
</child>
<child value="persid">
<name>evtdly.obj_id</name>
</child>
<child>
<name>lrel_attachments_requests.cr</name>
<extattr mark_del="1" ref_attr="attmnt">
<name>attmnt.id</name>
</extattr>
</child>
<child>
<name>lrel_notify_list_cntntf.cr</name>
</child>
<child value="persid">
<name>ext_entity_map.ob_persid</name>
</child>
<child>
<name>attached_sla._mapped_cr</name>
</child>
<child>
<name>tgt_time.mapped_cr</name>
</child>
<ref_by>cr.parent</ref_by>
<ref_by>cr_tpl.template</ref_by>
</main_obj>
"
This tells you beside delete one record from the call request table for a request, you would also need to clear those references in those 10 tables(what we call children). So you can see it is very easy to make some mistakes leave some
hanging or delete some that should not be deleted. Therefore, you should have those backed up before start deleting.
And if you would like to delete that one ticket using SDM archive purge rule, you would need to make sure the ticket is
"inactive"(if not, manually change this field in mdb table active=0), the ticket is old enough(at least 30 days old since closed so you may need to manually change the close_date to fake this), and then use this extra query in the rule
ref_num=\'the-cr-number\'
and manually run the rule.
In short, if you want to manually delete one ticket, after properly back up the mdb, you would need to delete records in 11 tables; if you would like to use the archive/purge rule, you may need to fake some fields first and then use some extra query.
Hope this helps. Thanks _Chi