rm <space or page name>
Note, the space will be deleted in a long running task. Therefore, the space may not be deleted yet when this input has returned