Suppose you are receiving spam emails with a specific subject line that contains the word insurance. Now, you want to discard all the emails with the subject line insurance.
Please refer to the following steps to discard emails with the subject line.
Step 1: Log in to your cPanel.
Step 2: Click on the Global Email Filters.

Step 3: Click on Create a New Filter.

Step 4: In the filter name, set a new filter name. It would help if you kept a unique name to identify your filter from multiple filters.
Step 5: Inside the Rules sections, select the subject and contains. In the box below the subject, enter the subject line upon which you want to set the rule.
Step 6: In the Action button, select Discard Message from the drop-down and click on the Create button.

