[GH-ISSUE #87] Add API Endpoint to Delete Unused Vouchers #45

Closed
opened 2026-05-07 00:18:14 +02:00 by BreizhHardware · 3 comments

Originally created by @berg-maia on GitHub (Aug 19, 2025).
Original GitHub issue: https://github.com/glenndehaan/unifi-voucher-site/issues/87

Originally assigned to: @glenndehaan on GitHub.

The feature

First of all, thanks for this amazing project.

I would like to suggest adding an API endpoint that allows for the deletion of previously generated vouchers that were never used.

This functionality would help keep the system clean by removing old, unused vouchers — for example, those generated earlier in the day but never redeemed.

Originally created by @berg-maia on GitHub (Aug 19, 2025). Original GitHub issue: https://github.com/glenndehaan/unifi-voucher-site/issues/87 Originally assigned to: @glenndehaan on GitHub. ### The feature First of all, thanks for this amazing project. I would like to suggest adding an API endpoint that allows for the deletion of previously generated vouchers that were never used. This functionality would help keep the system clean by removing old, unused vouchers — for example, those generated earlier in the day but never redeemed.
BreizhHardware 2026-05-07 00:18:14 +02:00
Author
Owner

@glenndehaan commented on GitHub (Aug 19, 2025):

Hi @berg-maia,

Thank you for the kind words.
I will add this to the v8 planning since this does require some small rework.

Kind regards,
Glenn de Haan

<!-- gh-comment-id:3200923956 --> @glenndehaan commented on GitHub (Aug 19, 2025): Hi @berg-maia, Thank you for the kind words. I will add this to the v8 planning since this does require some small rework. Kind regards, Glenn de Haan
Author
Owner

@koles142 commented on GitHub (Aug 27, 2025):

Hi, can you add automatic remove expired code in the panel for clean view?

<!-- gh-comment-id:3228949349 --> @koles142 commented on GitHub (Aug 27, 2025): Hi, can you add automatic remove expired code in the panel for clean view?
Author
Owner

@glenndehaan commented on GitHub (Aug 27, 2025):

Hi @berg-maia,

This feature is now available as a task within the just released version 8.0.0 (https://github.com/glenndehaan/unifi-voucher-site/releases/tag/8.0.0).
Please ensure to read the migration documentation before upgrading.

Then enable the feature like this:

services:
  unifi-voucher-site:
    image: glenndehaan/unifi-voucher-site:latest
    ports:
      - "3000:3000"
    environment:
      # Enables/disables an automated task to clean up unused vouchers (Vouchers unused a day after creation) from UniFi
      TASK_CLEANUP_UNUSED: 'true'

@koles142 This feature was also introduced as a task and can be enabled like this:

services:
  unifi-voucher-site:
    image: glenndehaan/unifi-voucher-site:latest
    ports:
      - "3000:3000"
    environment:
      # Enables/disables an automated task to clean up expired vouchers from UniFi
      TASK_CLEANUP_EXPIRED: 'true'
<!-- gh-comment-id:3229171894 --> @glenndehaan commented on GitHub (Aug 27, 2025): Hi @berg-maia, This feature is now available as a task within the just released version 8.0.0 (https://github.com/glenndehaan/unifi-voucher-site/releases/tag/8.0.0). Please ensure to read the migration documentation before upgrading. Then enable the feature like this: ```yaml services: unifi-voucher-site: image: glenndehaan/unifi-voucher-site:latest ports: - "3000:3000" environment: # Enables/disables an automated task to clean up unused vouchers (Vouchers unused a day after creation) from UniFi TASK_CLEANUP_UNUSED: 'true' ``` @koles142 This feature was also introduced as a task and can be enabled like this: ```yaml services: unifi-voucher-site: image: glenndehaan/unifi-voucher-site:latest ports: - "3000:3000" environment: # Enables/disables an automated task to clean up expired vouchers from UniFi TASK_CLEANUP_EXPIRED: 'true' ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/unifi-voucher-site#45
No description provided.