Author |
|
solkmaaker Senior Member

Joined: 28 June 2020
Online Status: Offline Posts: 192
|
Posted: 16 August 2025 at 10:54am | IP Logged
|
|
|
By deleting tenant, users (from DB) and mail server definiton is deleted, but tenant user files are not deleted.
How do delete those files?
Filesystem structure (numbers) come from DB, but since tenant is deleted, it is not known any more whom those files belonged.
|
Back to Top |
|
|
Igor AfterLogic Support

Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6161
|
Posted: 18 August 2025 at 12:26am | IP Logged
|
|
|
I've tested this on one of our test systems, and the issue is not reproduced - upon deleting a tenant, users and their files are deleted from database and flesystem respectively. Is the issue you've described something you can reliably reproduce, on a test system of some kind perhaps?
There's a possibility that Aurora attempts to delete the files but fails to do so due to some kind of error, is there anything relevant in Aurora or webserver/PHP logs? We'd appreciate any additional troubleshooting information, please feel free to open a ticket in our HelpDesk. Thanks.
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
solkmaaker Senior Member

Joined: 28 June 2020
Online Status: Offline Posts: 192
|
Posted: 18 August 2025 at 1:22am | IP Logged
|
|
|
I tried to reproduce problem on our test server, but there it works OK.
But it does not on live system.
Test system is reinstalled from time to time, but live has been up for a long time and has got many updates over years.
I suspect that there might be something broken there.
Thank you for quick answer.
I'll keep investigating.
|
Back to Top |
|
|
Igor AfterLogic Support

Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6161
|
Posted: 18 August 2025 at 4:18am | IP Logged
|
|
|
There's a mechanism in Aurora which lets you remove any kind of orphans, and I believe that includes personal files as well. Try running the following command from within Aurora's main directory:
Code:
php system/bin/console orphans --remove |
|
|
If you don't specify the "--remove" flag, orphans will only be displayed but no action will be taken.
--
Regards,
Igor, Afterlogic
|
Back to Top |
|
|
solkmaaker Senior Member

Joined: 28 June 2020
Online Status: Offline Posts: 192
|
Posted: 18 August 2025 at 7:35am | IP Logged
|
|
|
This does romeve some orphan items indeed.
But still somehow while deleting tenant, user files were deleted, but corporate files were not.
Can you test this on your instance please?
Also, while cleaning orphans, some tables are not cleaned.
What i did was: deleted all tenants and users, so only Default tenant was left.
DB which was at the beginning 126M was left 79M after all should have been deleted.
I'm assuming that tables like au_adav_propertystorage_old1962 and all tables with au_eav_* are obsolete?
But tables that did contain user data after all should have beel deleted were: activity_history, adav_addressbookchanges, adav_addressbooks, adav_cards, adav_reminders, adav_schedulingobjects, contacts, contacts_addressbooks, contacts_cards, contacts_ctags, contacts_group_contact, contacts_groups, core_user_blocks, min_hashes
|
Back to Top |
|
|