skrip shell hapus file jika ada

#!/bin/bash

file="file_you_want_to_delete"

if [ -f "$file" ] ; then
    rm "$file"
fi
Worrisome Wolverine