# Usermin, delete button on mail list stopped working

**URL:** <https://forum.virtualmin.com/t/usermin-delete-button-on-mail-list-stopped-working/123813>\
**Category:** Usermin\
**Created:** [December 5, 2023, 11:58pm UTC](https://forum.virtualmin.com/t/usermin-delete-button-on-mail-list-stopped-working/123813 "2023-12-05T23:58:44Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Randomz](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/r/839c29/32.png) [@Randomz](https://forum.virtualmin.com/u/Randomz)\
**Post date:** [December 5, 2023, 11:58pm UTC](https://forum.virtualmin.com/t/usermin-delete-button-on-mail-list-stopped-working/123813/1 "2023-12-05T23:58:44Z")

</div>

| SYSTEM INFORMATION | |
| --- | --- |
| OS type and version | Redhat Enterprise Linux 9.3 |
| Webmin version | 2.105 |
| Usermin version | 2.005 |
| Virtualmin version | 7.8.2 Pro and GPL |
| Theme version | 21.09.5 |

I noticed a couple of days ago that the delete button on top of the mail list had stopped working.

I just verifed this with both Pro and GPL versions.

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [December 6, 2023, 12:46am UTC](https://forum.virtualmin.com/t/usermin-delete-button-on-mail-list-stopped-working/123813/2 "2023-12-06T00:46:48Z")

</div>

I see an uncomfortably long delay before the message is deleted (which is also a bug-like), but it does work for me.

So, if it really never deletes (even after 5-10 seconds or so), we’ll need to see the errors from the browser console, I think. We also need to know what browser you’re using.

I’ll ask @Ilia to drop in here, as this is on his plate.

---

<div class="post-metadata">

**Author:** ![Randomz](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/r/839c29/32.png) [@Randomz](https://forum.virtualmin.com/u/Randomz)\
**Post date:** [December 6, 2023, 1:27am UTC](https://forum.virtualmin.com/t/usermin-delete-button-on-mail-list-stopped-working/123813/3 "2023-12-06T01:27:21Z")

</div>

This is curious. It only happens if there aren’t many emails in the list, doesn’t seem to matter how old they are or how old the account is.

It doesn’t do anything, the blue tick just sits there - I waited 30 seconds. No errors.

Using Firefox on Win10, both up to date.

I tested on an account with 10 emails, ticked one, hit delete and got nothing.  
I then set it to move to trash instead of just deleting and it started to work.

Setting it back to actually delete and it still works.

Tested on another account this time on GPL server and after failing I went to preferences, did a save without making any changes and it now works.

---

<div class="post-metadata">

**Author:** ![Randomz](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/r/839c29/32.png) [@Randomz](https://forum.virtualmin.com/u/Randomz)\
**Post date:** [December 6, 2023, 1:35am UTC](https://forum.virtualmin.com/t/usermin-delete-button-on-mail-list-stopped-working/123813/4 "2023-12-06T01:35:57Z")

</div>

Another test on the Pro server, account had 30+ emails, I deleted a handful leaving 26 and now it has stopped deleting.

Preferences set to show 25 so it’s not because of only being on one page.

---

<div class="post-metadata">

**Author:** ![Stegan](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/stegan/32/6860_2.png) [@Stegan](https://forum.virtualmin.com/u/Stegan)\
**Post date:** [December 6, 2023, 8:35am UTC](https://forum.virtualmin.com/t/usermin-delete-button-on-mail-list-stopped-working/123813/5 "2023-12-06T08:35:26Z")

</div>

I can confirm this issue.

But for me it only happens on first use of the usermin account. AND when attempting to delete more than one email.

When I open the email the delete button works as expected. When I return to the list the delete button “trash icon” works as expected deletes all selected emails.

it is as if opening an email throws a flag and gets everything to work.  
not browser dependent (Chrome & Firefox)  
no errors in dev tools, can wait for ever, does seem to be transient and only on first use. (again suggesting a flag is not initialised when inbox is first loaded with its list)

---

<div class="post-metadata">

**Author:** ![Randomz](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/r/839c29/32.png) [@Randomz](https://forum.virtualmin.com/u/Randomz)\
**Post date:** [December 6, 2023, 9:52am UTC](https://forum.virtualmin.com/t/usermin-delete-button-on-mail-list-stopped-working/123813/6 "2023-12-06T09:52:24Z")

</div>

I can log in to en existing account, delete from list not working. Read an email, return to list and then delete works.

Logout, then log back in again - same problem.

It doesn’t matter how many or few emails I select. Just one or the who;e page list.

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [December 6, 2023, 10:07am UTC](https://forum.virtualmin.com/t/usermin-delete-button-on-mail-list-stopped-working/123813/7 "2023-12-06T10:07:40Z")

</div>

> [@Joe](#):
>
> I see an uncomfortably long delay before the message is deleted (which is also a bug-like), but it does work for me.

That is odd. I have 1k emails in my inbox and I could list and then delete those super quickly without any issue:

@Randomz I’m surprised that you’re having this issue with Usermin 2.005. Did you try another browser in incognito mode? Did you try restarting all related services (or just rebooting the server)? Also, did you change any mailbox related options for Usermin in **Webmin → Usermin Configuratoin** page? Is Usermin connecting via IMAP or reading Maildir directly? How large your emails are?

---

<div class="post-metadata">

**Author:** ![Stegan](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/stegan/32/6860_2.png) [@Stegan](https://forum.virtualmin.com/u/Stegan)\
**Post date:** [December 6, 2023, 10:23am UTC](https://forum.virtualmin.com/t/usermin-delete-button-on-mail-list-stopped-working/123813/8 "2023-12-06T10:23:54Z")

</div>

> [@Ilia](#):
>
> I’m surprised that you’re having this issue with Usermin 2.005.

@Ilia 2.005 here as well.  
I have just done a reboot (and refilled the inbox) - problem is still there.  
This is not browser related I have now tried Brave and in desperation (IE) still the trash icon does nothing until I open a message then I can use it to delete as many as are selected. → initially the selection is not activating the trash can icon?

going to try same on a different box different domain/email.

It is not a desperate problem to fix as opening the message then deleting it still works so AFAIC it can wait.

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [December 6, 2023, 12:15pm UTC](https://forum.virtualmin.com/t/usermin-delete-button-on-mail-list-stopped-working/123813/9 "2023-12-06T12:15:27Z")

</div>

> [@Stegan](#):
>
> This is not browser related I have now tried Brave and in desperation (IE) still the trash icon does nothing until I open a message then I can use it to delete as many as are selected.

Does the following solve the problem — before trying to delete messages try to hit on the left menu, choosing specific inbox? For example, clicking on **Inbox** in navigation menu before selecting messages for deletion and hitting **Delete** button?

If it doesn’t, can you open browser’s console, with **Network** tab in view, try the operation (select and delete emails) and then see if there are any error messages printed there? If there are, can you take a screenshot of the whole page, including left menu and share it with me?

---

<div class="post-metadata">

**Author:** ![Stegan](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/stegan/32/6860_2.png) [@Stegan](https://forum.virtualmin.com/u/Stegan)\
**Post date:** [December 6, 2023, 4:24pm UTC](https://forum.virtualmin.com/t/usermin-delete-button-on-mail-list-stopped-working/123813/10 "2023-12-06T16:24:48Z")

</div>

Sorry about slow response → was called out of office.  
On a different VS (but same VM) Still Ubuntu OS Usermin 2.005 I get console errors:

 ![Screenshot 2023-12-06 161629](https://cdn.forum.virtualmin.com/uploads/default/original/2X/3/395d41e3fc480a654c5b5c97d22731d4180b2619.png)  
Network:  
 ![Screenshot 2023-12-06 162342](https://cdn.forum.virtualmin.com/uploads/default/original/2X/7/738cf9fc1748d5a16c26b8676a10edc2a997a783.png)

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [December 6, 2023, 9:56pm UTC](https://forum.virtualmin.com/t/usermin-delete-button-on-mail-list-stopped-working/123813/11 "2023-12-06T21:56:49Z")

</div>

I believe the issue might come from not having any mailboxes actively selected?

Could you try clicking on the **Inbox** link in the left navigation menu to see if it resolves the deletion problem then? If this fixes the issue, it still indicates a bug, though a different type than initially thought…

---

<div class="post-metadata">

**Author:** ![stefan1959](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@stefan1959](https://forum.virtualmin.com/u/stefan1959)\
**Post date:** [December 6, 2023, 10:06pm UTC](https://forum.virtualmin.com/t/usermin-delete-button-on-mail-list-stopped-working/123813/12 "2023-12-06T22:06:46Z")

</div>

That worked for me. Can’t delete when first logged in. Click the inbox on left and then I can delete.

---

<div class="post-metadata">

**Author:** ![Stegan](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/stegan/32/6860_2.png) [@Stegan](https://forum.virtualmin.com/u/Stegan)\
**Post date:** [December 7, 2023, 8:14am UTC](https://forum.virtualmin.com/t/usermin-delete-button-on-mail-list-stopped-working/123813/13 "2023-12-07T08:14:34Z")

</div>

> [@Ilia](#):
>
> Could you try clicking on the **Inbox** link in the left navigation menu

Yes, that seems to fix it - click and wait for the candy stripes to complete, then select the email to delete, click on the trash can icon and it deletes it

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [December 7, 2023, 9:58am UTC](https://forum.virtualmin.com/t/usermin-delete-button-on-mail-list-stopped-working/123813/14 "2023-12-07T09:58:10Z")

</div>

@stefan1959 and @Stegan, are you guys running the latest Usermin 2.005? Can you confirm that this issue can be reproduced in incognito tab as well, and right after logging in to Usermin? Or how did it happen for you exactly?

Does it always require to click inbox link in navigation? I’m having troubles reproducing it. Also, I remember fixing this (and similar) issue in the past. Does it change anything if you force reload the browser’s cache by clicking `Ctrl+Shift+R`?

@Randomz Does it also solve the issue for you? Or your initial issue was different, i.e. slow email deletion? @Randomz is Usermin connecting to the mailbox using IMAP or it reads _Maildir_ directly?

---

<div class="post-metadata">

**Author:** ![Stegan](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/stegan/32/6860_2.png) [@Stegan](https://forum.virtualmin.com/u/Stegan)\
**Post date:** [December 7, 2023, 11:32am UTC](https://forum.virtualmin.com/t/usermin-delete-button-on-mail-list-stopped-working/123813/15 "2023-12-07T11:32:10Z")

</div>

Yes running Usermin 2.005  
Authentic theme 21.09.5

Same error with Incognito

 ![Screenshot 2023-12-07 111357](https://cdn.forum.virtualmin.com/uploads/default/original/2X/7/7ee74b8262508cde14ab351febd7f1060faeaeef.png)

exact steps are:  
1 Log in to Webmin/Virtualmin as root  
2 select VS  
3 go to `Edit Users`  
4 select my user name (edit user)  
5 click button to login to Usermin  
6 select (tick) a single email to delete (DO NOT OPEN IT) this reveals the trash can icon  
7 click the trash can → error in console (nothing on the gui)

then if I choose “Inbox” AND wait for the candy stripes to finish then repeat 6 above the trash icon does the delete.

then close the window and reload as 1-5 → exactly the same

`Ctrl+Shift+R` → no change

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [December 7, 2023, 3:22pm UTC](https://forum.virtualmin.com/t/usermin-delete-button-on-mail-list-stopped-working/123813/16 "2023-12-07T15:22:31Z")

</div>

Alright, thanks for the heads up. I have made a patch on the theme side. It should be fixed now.

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [February 5, 2024, 3:22pm UTC](https://forum.virtualmin.com/t/usermin-delete-button-on-mail-list-stopped-working/123813/17 "2024-02-05T15:22:52Z")

</div>

Closed on February 5, 2024, 3:22pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
