[PR #470] [MERGED] Add "Delete files" task #777

Closed
opened 2026-02-04 18:49:59 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/pelican-dev/panel/pull/470
Author: @Boy132
Created: 7/8/2024
Status: Merged
Merged: 7/10/2024
Merged by: @Boy132

Base: mainHead: feature/delete-files-task


📝 Commits (5)

📊 Changes

6 files changed (+68 additions, -4 deletions)

View changed files

📝 app/Http/Requests/Api/Client/Servers/Schedules/StoreTaskRequest.php (+1 -1)
📝 app/Jobs/Schedule/RunTaskJob.php (+6 -1)
📝 app/Models/Task.php (+1 -0)
app/Services/Files/DeleteFilesService.php (+41 -0)
📝 resources/scripts/components/server/schedules/ScheduleTaskRow.tsx (+6 -0)
📝 resources/scripts/components/server/schedules/TaskDetailsModal.tsx (+13 -2)

📄 Description

Closes #383

Examples for payload:

  • /server/rust/world.map will delete the file world.map inside /server/rust
  • /server/rust/*.sav will delete all files inside /server/rust that end with .sav
  • /server/rust/player.*.db will delete all files inside /server/rust that start with player. and end with .db
  • /oxide/data/backpacks will delete the whole folder /oxide/data/backpacks
  • /oxide/data/backpacks/* will delete all files and folders inside /oxide/data/backpacks but not /oxide/data/backpacks itself

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/pelican-dev/panel/pull/470 **Author:** [@Boy132](https://github.com/Boy132) **Created:** 7/8/2024 **Status:** ✅ Merged **Merged:** 7/10/2024 **Merged by:** [@Boy132](https://github.com/Boy132) **Base:** `main` ← **Head:** `feature/delete-files-task` --- ### 📝 Commits (5) - [`bd374dc`](https://github.com/pelican-dev/panel/commit/bd374dc2228a57bd485f098bb4fb7a8e82619a25) started "delete files" task - [`9fb739f`](https://github.com/pelican-dev/panel/commit/9fb739f2ff8351a3d7651bc2ddca3a665ec28d30) add logic to DeleteFilesService - [`e2f8902`](https://github.com/pelican-dev/panel/commit/e2f8902e508f1bf4ea11b72b02c07df5ca7e9ee0) add frontend - [`4a03714`](https://github.com/pelican-dev/panel/commit/4a03714b5448912aaa28d5e4b3e3d71cf4997d31) make nicer - [`2a676d5`](https://github.com/pelican-dev/panel/commit/2a676d54157569d0c47fadd9dc61802ae1e4f510) move description to right place ### 📊 Changes **6 files changed** (+68 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `app/Http/Requests/Api/Client/Servers/Schedules/StoreTaskRequest.php` (+1 -1) 📝 `app/Jobs/Schedule/RunTaskJob.php` (+6 -1) 📝 `app/Models/Task.php` (+1 -0) ➕ `app/Services/Files/DeleteFilesService.php` (+41 -0) 📝 `resources/scripts/components/server/schedules/ScheduleTaskRow.tsx` (+6 -0) 📝 `resources/scripts/components/server/schedules/TaskDetailsModal.tsx` (+13 -2) </details> ### 📄 Description Closes #383 <h4>Examples for payload:</h4> <ul> <li><code>/server/rust/world.map</code> will delete the file <code>world.map</code> inside <code>/server/rust</code></li> <li><code>/server/rust/*.sav</code> will delete all files inside <code>/server/rust</code> that end with <code>.sav</code></li> <li><code>/server/rust/player.*.db</code> will delete all files inside <code>/server/rust</code> that start with <code>player.</code> and end with <code>.db</code></li> <li><code>/oxide/data/backpacks</code> will delete the whole folder <code>/oxide/data/backpacks</code></li> <li><code>/oxide/data/backpacks/*</code> will delete all files and folders inside <code>/oxide/data/backpacks</code> but not <code>/oxide/data/backpacks</code> itself</li> </ul> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-04 18:49:59 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel#777