Unable to shred a ticket

Hi

I am trying to shred a ticket but am getting the following regarding dependencies.

"[root@rt bin]# /opt/rt5/sbin/rt-shredder --plugin ‘Tickets=query,id = 477091’
SQL dump file is ‘/opt/rt5/bin/20220718T154600-0001.sql’
Next 1 objects would be deleted:
RT::Ticket-SGUL-477091 object
Do you want to proceed? [y/N] y

ERROR: Dependencies list has reached its limit.
See $RT::DependenciesLimit in RT::Shredder docs.

[419366] [Mon Jul 18 15:46:05 2022] [warning]: Too late to safely run transaction-batch scrips! This is typically caused by using ticket objects at the top-level of a script which uses the RT API. Be sure to explicitly undef such ticket objects, or put them inside of a lexical scope. at /opt/rt5/sbin/…/lib/RT/Ticket.pm line 2757, line 1 during global destruction. (/opt/rt5/sbin/…/lib/RT/Ticket.pm:2757)
"

Does anyone know how I increase the dependencies for RT? I can’t find it in the documentation.

Thanks in advance.

Kind regards
Anthony

Is there possibly a circular dependency of some sort? For example you’re trying to delete ticket A, which depends on ticket B, which depends on ticket C which depends on ticket A. Might be worth checking.