How to move subproject from parent project to main level

Is it possible to move subproject to main level so it doesn’t have parent project.

Currently I have something like this

  • project 1
    - subproject 1
    - subproject 2

Finally I want to have structure like below

  • project 1
    - subproject 1
  • subproject 2 (no parent project)