Deleting a Space can only be done when authenticated as a user, it cannot be done when authenticated as an application.
The "deleteSpace" mutation expects and returns fixed and basic input and output. The only input is the space ID. The only output is a boolean value for whether or not the deletion was successful.
As a result the org.opencode4workspace.builders.SpaceDeleteGraphQLMutation only has one visible method, the static helper method buildDeleteSpaceMutation(String). This takes the ID of the Space to delete and returns a boolean for whether or not the process was successful. Similar helper methods are available in WWClient and WWGraphQLEndpoint. The recommended approach is to use WWClient, as in the example below.