A simple script to delete files from a TeamSpeak server.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Nick Slowinski d4fb0ededa
Release of version 1.0.0
11 months ago
LICENSE Release of version 1.0.0 11 months ago
LIESMICH.md Release of version 1.0.0 11 months ago
README.md Release of version 1.0.0 11 months ago
TeamSpeak_file_eraser.sh Release of version 1.0.0 11 months ago
VERSION Release of version 1.0.0 11 months ago


Für eine Deutsche Version dieser Datei, schau dir bitte “LIESMICH.md” an.


My English is far from perfect, if you find a mistake in this or other files, please take the time and email me. You can find my email address under “Bugs, help and support”. Thank you.


This script allows you to delete uploaded files in a Channel of a TeamSpeak server after a preset time. This way, users can exchange data and you never have to worry about tight disk space again.




  • A dedicated server (Linux) on which also the TeamSpeak server is running.
  • The following packages are required:
    • curl
    • findutils (find)
    • All other packages used should be included in the standard scope of all major Linux distributions.
  • A user with sufficient read and write access to the TeamSpeak server directory.


It is recommended to save and run the script in a subfolder, because the script briefly writes certain data in the same directory.


$ mkdir TeamSpeak_file_eraser && cd TeamSpeak_file_eraser
$ git clone https://git.nick-slowinski.de/Nick1307/TeamSpeak_file_eraser.git


For configuration the script TeamSpeak_file_eraser.sh has to be edited directly. The configuration takes place from line 20 to 67 and contains important explanations of the individual points. You should not change any of the following lines, if you do, it must be done under license!


This script was designed to run as a cronjob, but it can also be run manually.

Important: It is strongly recommended not to execute the script several times per minute! Reason: The script writes deleted files to a separate log whose file name refers only to the current minute of execution. If the script is executed again (this minute), this overwrites the last entries.

Setup as a cronjob

Execute the command crontab -e and enter one of the following lines. Alternatively, a custom cronjob can be used.

Hourly execution:

0 * * * * bash /path/to/TeamSpeak_file_eraser.sh >/dev/null 2>&1

Execution of every 15 minutes:

*/15 * * * * bash /path/to/TeamSpeak_file_eraser.sh >/dev/null 2>&1

Manual execution

$ bash /path/to/TeamSpeak_file_eraser.sh

Note: The script is not executable by default and can only be executed with bash […].

Bugs, help and support

For questions, bugs, suggestions for improvement, help, etc. please contact me by email (nick@nick-slowinski.de). My private PGP key can be found at keys.openpgp.org. Encrypted communication is possible with this key.


This project is under the GNU General Public License v3. This is attached to the repository as “LICENSE”.