def rmi(self, force=False, via_name=False):
identifier = self.get_full_name() if via_name else (self._id or self.get_id())<EOL>cmdline = ["<STR_LIT>", "<STR_LIT>", identifier, "<STR_LIT>" if force else "<STR_LIT>"]<EOL>run_cmd(cmdline)<EOL>
remove this image

:param force: bool, force removal of the image
:param via_name: bool, refer to the image via name, if false, refer via ID
:return: None