panel icon indicating copy to clipboard operation
panel copied to clipboard

New Action for Tasks in Schedules: Remove Files

Open Maelep opened this issue 3 years ago • 11 comments

Is there an existing feature request for this?

  • [X] I have searched the existing issues before opening this feature request.

Describe the feature you would like to see.

Add the Deletes Files option in the Action drop down menu when creating a new task that will allow users to delete a list of files.

Describe the solution you'd like.

This action displays a text box allowing you to list paths to files on the server that you wish to delete. For example:

./server/rust/*.map
./server/rust/*.sav
./server/rust/*.sav.1
./server/rust/*.sav.2
./server/rust/player.blueprints.*.db
./server/rust/player.blueprints.*.db-journal

Additional context to this request.

Useful for all games and softwares but here I will focus on the game Rust. Indeed, this game works with a Wipe system which requires the deletion of some files at regular intervals. Unfortunately, it is not possible to do it automatically and therefore requires the presence of an administrator at the time of the Wipe. Thanks to this feature we could solve a part of the problem.

Maelep avatar Oct 22 '21 18:10 Maelep

I i think alot of sandbox games could have great use of this

Zebotxd avatar Oct 22 '21 21:10 Zebotxd

Not just sandbox games, pretty much any nest that produces log files, runs backups or uses a file cache of some sort. It'd be great for clean up. Maybe with either regex or globbing support for the file names? (or both)

cozyGalvinism avatar Oct 29 '21 11:10 cozyGalvinism

Any news on this gem?

KOYK avatar Jul 14 '22 06:07 KOYK

indeed .. anything new here ?

nuallan89 avatar Aug 15 '22 18:08 nuallan89

My rust auto-wipe technically already handles this. See https://github.com/parkervcp/eggs/tree/master/game_eggs/steamcmd_servers/rust/rust_autowipe

This could also be managed in the image when it was handled on startup.

it would just be a variable to specify the files that need to be wiped.

parkervcp avatar Aug 15 '22 18:08 parkervcp

Yes, some eggs handle this, but that isn't a reasonable approach long term (or for users wanting highly custom things that aren't also admins). And no, per usual across the entire Pterodactyl organization I only close issues once fixed.

An issue left open just means it hasn't become important enough or interesting enough for me to look into.

DaneEveritt avatar Aug 15 '22 19:08 DaneEveritt

This should be one of the basic features :) any progress on this?

KissmanCZ avatar Apr 15 '23 09:04 KissmanCZ

Still no updates on this ?

Tudorhc5 avatar Jul 02 '23 13:07 Tudorhc5

I can only +1 this, 110% would love to have access to this through scheduled tasks, as mentioned, cleaning log files, data files for Rust wipes and many other games that don't have a wipe feature but you want to be able to wipe at a regular interval.

geekgarage avatar Aug 28 '23 07:08 geekgarage

I can only +1 this, 110% would love to have access to this through scheduled tasks, as mentioned, cleaning log files, data files for Rust wipes and many other games that don't have a wipe feature but you want to be able to wipe at a regular interval.

Why is my comment marked as spam?

geekgarage avatar Aug 31 '23 22:08 geekgarage

Yeah i would love to do custom Tasks

Zekhap avatar Oct 15 '23 14:10 Zekhap

I would also +1 adding this functionality to the already great scheduler! Would save me having to run manual scripts outside the panel.

stuartmacfarlane avatar Jan 02 '24 16:01 stuartmacfarlane