Skip to main content

delete_supernode

Function delete_supernode 

Source
async fn delete_supernode(
    __arg0: State<Arc<SharedState>>,
    __arg1: Path<String>,
) -> impl IntoResponse
Expand description

DELETE /api/supernodes/{name} — removes the named definition, then revalidates and recompiles. Returns {"status": "deleted"} on success.

Errors: 404 Not Found if it does not exist; 400 Bad Request if a policy still references it (recompilation fails, nothing changes).