Skip to content

Cleanup /mnt/efs #2163

Closed Answered by estradino
shaharyahalom asked this question in Troubleshoot
May 2, 2024 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

This directory contains temporary files/recordings. These files are automatically deleted, depending on the version you're running, every 2 to 4 days. But you can also run that manually. Below is the script to delete recordings that are older than 1 day:

# Delete all the files older than 1 day
set -x
echo "Cleaning NFS for recordings older than 1 day"
storage=`du -sh /mnt/efs`
find /mnt/efs -type f -mtime +1 -delete
echo "Storage before cleaning"
echo ${storage}
echo "Storage after cleaning"
du -sh /mnt/efs

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@shaharyahalom
Comment options

Answer selected by shaharyahalom
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants