def remove_linked_files(self, file_path=None, relpath=None, mimetype=None,<EOL>time_origin=None, ex_from=None):
for attrib in self.media_descriptors[:]:<EOL><INDENT>if file_path is not None and attrib['<STR_LIT>'] != file_path:<EOL><INDENT>continue<EOL><DEDENT>if relpath is not None and attrib['<STR_LIT>'] != relpath:<EOL><INDENT>continue<EOL><DEDENT>if mimetype is not None and attrib['<STR_LIT>'] != mimetype:<EOL><INDENT>continue<EOL><DEDENT>if time_origin is not None andattrib['<STR_LIT>'] != time_origin:<EOL><INDENT>continue<EOL><DEDENT>if ex_from is not None and attrib['<STR_LIT>'] != ex_from:<EOL><INDENT>continue<EOL><DEDENT>del(self.media_descriptors[self.media_descriptors.index(attrib)])<EOL><DEDENT>
Remove all linked files that match all the criteria, criterias that
        are ``None`` are ignored.

        :param str file_path: Path of the file.
        :param str relpath: Relative filepath.
        :param str mimetype: Mimetype of the file.
        :param int time_origin: Time origin.
        :param str ex_from: Extracted from.