title: How to delete files after using grep function
body: <p>I have the command below:</p>
  
  <pre><code>grep -rnw '/root/serviceDown/' -e "The service 'httpd' on server is currently down"
  </code></pre>
  
  <p>and the result is as follows:</p>
  
  <pre><code>/root/serviceDown/2946/000.conf:5:subject=The service 'httpd' on server is currently down
  /root/serviceDown/2955/000.conf:5:subject=The service 'httpd' on server is currently down
  </code></pre>
  
  <p>How to write a script which deletes those files after the <code>grep</code> command and then restarts the server?</p>