public void deleteSpace ( String spaceID , String storeID ) throws ResourceException { try { StorageProvider storage = storageProviderFactory . getStorageProvider ( storeID ) ; storage . deleteSpace ( spaceID ) ; } catch ( NotFoundException e ) { throw new ResourceNotFoundException ( "delete space" , spaceID , e ) ; } catch ( Exception e ) { storageProviderFactory . expireStorageProvider ( storeID ) ; throw new ResourceException ( "delete space" , spaceID , e ) ; } }
Deletes a space removing all included content .