private void deleteFromStore(String instanceId) {
        InstanceProfile profile = instanceStore.getInstance(taskId, instanceId);
        if (profile == null) {
            LOGGER.error("try to delete instance from store but not found: taskId {} instanceId {}", taskId,
                    instanceId);
            return;
        }
        String inlongGroupId = profile.getInlongGroupId();
        String inlongStreamId = profile.getInlongStreamId();
        instanceStore.deleteInstance(taskId, instanceId);
        LOGGER.info("delete instance from instance store: taskId {} instanceId {} result {}", taskId,
                instanceId, instanceStore.getInstance(taskId, instanceId));
        AuditUtils.add(AuditUtils.AUDIT_ID_AGENT_DEL_INSTANCE_DB, inlongGroupId, inlongStreamId,
                profile.getSinkDataTime(), 1, 1, auditVersion);
    }
thread for core thread.

@return runnable profile.
inlong-agent/agent-core/src/main/java/org/apache/inlong/agent/core/instance/InstanceManager.java