delete a string from every line starting with and ending code example
Example: delete a line starting with sed
# Delete all lines starting with '#'
$ sed -i '/^#/d' filepath
# Delete all lines starting with '#'
$ sed -i '/^#/d' filepath