             process: payload.node
             port: payload.port
         sendExportedPorts connection, runtime
+    else if command is "removeinport"
+        delete graph.inports[payload.public]
+        sendExportedPorts connection, runtime
     else if command is "addoutport"
         graph.outports = {} if not graph.outports?
         graph.outports[payload.public] =

        runtime.exportedEdges = [] if not runtime.exportedEdges?
        edges = runtime.edgesForInspection.concat runtime.exportedEdges
        handleNetworkEdges runtime, connection, edges
    else
        console.log "Unknown NoFlo UI command on protocol 'network':", command, payload
    return

            src:
                process: payload.node
                port: payload.port
    else if command is "removeoutport"
        delete graph.outports[payload.public]
        sendExportedPorts connection, runtime
    else
        console.log "Unknown NoFlo UI command on protocol 'graph':", command, payload
    return
