how to delete a text file in Linux code example
Example 1: delete all files with specific name ubuntu
find -type f -name '*text*' -delete
Example 2: delete lines text file linux
sed -i '' '/pattern to match/d' ./infile
Example 3: how to delete files in linux
rm <file> .. rm -r <file> .. r stands for recursive