how to clear deleted files in linux code example
Example 1: linux remove last line from file
sed '$d' <file>
sed -i '$d' <file> # to edit in place
Example 2: how to remove package files in linux
sudo nano /etc/postfix/main.cf
sed '$d' <file>
sed -i '$d' <file> # to edit in place
sudo nano /etc/postfix/main.cf