edit mode

i once entered edit mode, and their where multiple cubes part of one object. i selected one cube with the linked vertices function and somehow was able to ramove the cube from the object and put it as a seperate object in the main level.
but i didnt had the time to work in blender for 2 months now, and i fergot how to do this. its also not in the book and i really need this.

can anyone help me and tell me what to do???

i would deeply appreciate any help

P key, Seperate selected into new object [no undo]

p-key separate


Thank you:) this is the one i was looking for

you helped me out a lot