def removeSecToGroupTableEntry (self, trxContext, secModel, secName):
        self._log("remove-sec-to-group-table-entry").debug2("called. trxContext=%s, secModel=%s, secName=%s", trxContext, secModel, secName)

        pathToDelete = KeyPath()

        valVacm = Value()
        (tag, ns, prefix) = ("SNMP-VIEW-BASED-ACM-MIB", "http://tail-f.com/ns/mibs/SNMP-VIEW-BASED-ACM-MIB/200210160000Z", "SNMP_VIEW_BASED_ACM_MIB")
        valVacm.setXmlTag((tag, ns, prefix))
        pathToDelete.addKeyPathPostfix(valVacm)

        valVacmSecToGroupTable = Value()
        (tag, ns, prefix) = ("vacmSecurityToGroupTable", "http://tail-f.com/ns/mibs/SNMP-VIEW-BASED-ACM-MIB/200210160000Z", "SNMP_VIEW_BASED_ACM_MIB")
        valVacmSecToGroupTable.setXmlTag((tag, ns, prefix))
        pathToDelete.addKeyPathPostfix(valVacmSecToGroupTable)

        valEntry = Value()
        (tag, ns, prefix) = ("vacmSecurityToGroupEntry", "http://tail-f.com/ns/mibs/SNMP-VIEW-BASED-ACM-MIB/200210160000Z", "SNMP_VIEW_BASED_ACM_MIB")
        valEntry.setXmlTag((tag, ns, prefix))
        pathToDelete.addKeyPathPostfix(valEntry)

        """valKeyModel = Value()
        valKeyModel.setInt32(secModel)
        pathToDelete.addKeyPathPostfix(valKeyModel)

        valKeySecName = Value()
        valKeySecName.setString(secName)
        pathToDelete.addKeyPathPostfix(valKeySecName)

        res = self._maapiDomain.writeMaapi(None, None, trxContext, itemsToDelete=[pathToDelete])
        if res != ReturnCodes.kOk:
            self._log('remove-sec-to-group-table-entry-domain-failed').error('self._maapiDomain.writeMaapi() failed. PARAMS')
            return ReturnCodes.kGeneralError"""

        # due to a limitation of pyconfdlib.key_path.KeyPath (which onlys support single-key lists), we have to manually build the key path string here
        pathToDeleteStr = "%s{%s %s}" % (pathToDelete.getCannonicalStr(), secModel, secName)

        res = self._maapiDomain.deleteMaapiByStringKeyPath([pathToDeleteStr], trxContext)
        if res != ReturnCodes.kOk:
            self._log('remove-sec-to-group-table-entry-domain-failed').error('self._maapiDomain.deleteMaapiByStringKeyPath() failed. PARAMS')
            return ReturnCodes.kGeneralError

        self._log("remove-sec-to-group-table-entry-done").debug2("done. trxContext=%s, secModel=%s, secName=%s", trxContext, secModel, secName)
        return ReturnCodes.kOk