@@ -27,7 +27,6 @@ use ockam_api::cli_state::{
27
27
} ;
28
28
use ockam_api:: cloud:: enroll:: auth0:: UserInfo ;
29
29
use ockam_api:: cloud:: project:: Project ;
30
- use ockam_api:: cloud:: space:: Spaces ;
31
30
use ockam_api:: cloud:: { AuthorityNode , Controller } ;
32
31
use ockam_api:: nodes:: models:: portal:: OutletStatus ;
33
32
use ockam_api:: nodes:: models:: transport:: { CreateTransportJson , TransportMode , TransportType } ;
@@ -269,7 +268,6 @@ impl AppState {
269
268
}
270
269
271
270
async fn reset_state ( & self ) -> miette:: Result < ( ) > {
272
- self . reset_orchestrator ( ) . await ?;
273
271
let mut state = self . state . write ( ) . await ;
274
272
match state. reset ( ) . await {
275
273
Ok ( s) => {
@@ -281,17 +279,6 @@ impl AppState {
281
279
Ok ( ( ) )
282
280
}
283
281
284
- async fn reset_orchestrator ( & self ) -> miette:: Result < ( ) > {
285
- let ctx = self . context ( ) ;
286
- let controller = self . controller ( ) . await ?;
287
- for space in self . state ( ) . await . spaces . list ( ) ? {
288
- controller
289
- . delete_space ( & ctx, space. config ( ) . id . clone ( ) )
290
- . await ?;
291
- }
292
- Ok ( ( ) )
293
- }
294
-
295
282
/// Recreate a new NodeManagerWorker instance, which will restart the necessary
296
283
/// child workers as described in its Worker trait implementation.
297
284
pub async fn reset_node_manager ( & self ) -> miette:: Result < ( ) > {
0 commit comments