Missing unit test for Element.delete
Element.delete
overrides Django's deletion to avoid the cascading system which can fill up the RAM and be very slow; it calls arkindex.documents.deletion.delete_element
to run raw SQL queries before deleting the element. There is no unit test for this method, and it is unclear where it is actually used as DestroyElement
uses Element.objects.trash
instead.