def detach_network_interface(self, network_interface_id, force=False):
        """
        Detaches a network interface from an instance.

        :type network_interface_id: str
        :param network_interface_id: The ID of the network interface to detach.

        :type force: bool
        :param force: Set to true to force a detachment.

        """
        params = {'NetworkInterfaceId' : network_interface_id}
        if force:
            params['Force'] = 'true'
        return self.get_status('DetachNetworkInterface', params, verb='POST')
Detaches a network interface from an instance.

        :type network_interface_id: str
        :param network_interface_id: The ID of the network interface to detach.

        :type force: bool
        :param force: Set to true to force a detachment.