Function wicrs_server::api::delete_hub[][src]

pub async fn delete_hub(user_id: &str, hub_id: ID) -> Result
Expand description

Deletes a hub.

Arguments

  • user_id - ID of the user to check for permission to perform the operation.
  • hub_id - ID of the hub to delete.

Errors

This function may return an error for any of the following reasons:

  • The user is not in the hub.
  • The hub could not be loaded for any of the reasons outlined by Hub::load.
  • The user does not have permission to delete the hub.
  • The hub’s data files could not be deleted.