Files
openclaw/scripts/cleanup-whisper-artifacts.sh

6 lines
352 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -euo pipefail
DIR="/home/openclaw/.openclaw/media/inbound"
# Удаляем только артефакты распознавания, старше 2 часов
find "$DIR" -maxdepth 1 -type f \( -name 'file_*---*.wav' -o -name 'file_*---*.txt' -o -name 'file_*---*.srt' -o -name 'file_*---*.json' \) -mmin +120 -print -delete