Improve error message when deleting eggs with dependencies #508

Closed
opened 2026-02-04 18:17:38 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @Kalletal on GitHub (Dec 6, 2025).

Description

When trying to delete an egg that has dependencies (servers using it, egg variables, etc.), the
error message displayed is not helpful:

"Failed to delete 1 could not be deleted"

This message doesn't explain why the deletion failed.

Steps to Reproduce

  1. Create an egg
  2. Create a server using this egg
  3. Try to delete the egg via Admin > Eggs > Select egg > Bulk Actions > Delete Selected
  4. Confirm deletion
  5. See unhelpful error message

Expected Behavior

The error message should be more descriptive, for example:

  • "Cannot delete egg: 1 server(s) are currently using this egg"
  • "Cannot delete egg 'Mohist': Please delete or reassign the following servers first: [Server1,
    Server2]"

Current Behavior

Generic message "Failed to delete 1 could not be deleted" with no indication of the actual
cause.

Environment

  • Pelican Panel: latest (Docker image ghcr.io/pelican-dev/panel:latest)
  • Browser: Chrome/Firefox

Additional Context

This would greatly improve the admin UX by helping administrators understand what action they
need to take before deleting an egg.

Originally created by @Kalletal on GitHub (Dec 6, 2025). ## Description When trying to delete an egg that has dependencies (servers using it, egg variables, etc.), the error message displayed is not helpful: > "Failed to delete 1 could not be deleted" This message doesn't explain **why** the deletion failed. ## Steps to Reproduce 1. Create an egg 2. Create a server using this egg 3. Try to delete the egg via Admin > Eggs > Select egg > Bulk Actions > Delete Selected 4. Confirm deletion 5. See unhelpful error message ## Expected Behavior The error message should be more descriptive, for example: - "Cannot delete egg: 1 server(s) are currently using this egg" - "Cannot delete egg 'Mohist': Please delete or reassign the following servers first: [Server1, Server2]" ## Current Behavior Generic message "Failed to delete 1 could not be deleted" with no indication of the actual cause. ## Environment - Pelican Panel: latest (Docker image `ghcr.io/pelican-dev/panel:latest`) - Browser: Chrome/Firefox ## Additional Context This would greatly improve the admin UX by helping administrators understand what action they need to take before deleting an egg.
Author
Owner

@gOOvER commented on GitHub (Dec 7, 2025):

i can confirm this; when Bulk action is used, the description is missleading

@gOOvER commented on GitHub (Dec 7, 2025): i can confirm this; when Bulk action is used, the description is missleading
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel#508