<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def remove_jobs(self, mask):
 """Mark all jobs that match a mask as 'removed' """

        jobnames = self.table[mask]['jobname']
        jobkey = self.table[mask]['jobkey']
        self.table[mask]['status'] = JobStatus.removed
        for jobname, jobkey in zip(jobnames, jobkey):
            fullkey = JobDetails.make_fullkey(jobname, jobkey)
            self._cache.pop(fullkey).status = JobStatus.removed
        self.write_table_file()