@Thiird wrote:
Ok I found it and moved the edges of the board to layer 51, but I cant select the four little circles.
Somehow they are part of Dimension but I cant select and move them.
OK, that's because the footprint has "holes" there. A hole is a non-PTH hole for mounting purposes. You may want them, in fact, so that your board has correctly aligned mounting holes to fix the module down onto. If you do want to remove them, get the "holes" layer up and you should be able to delete them at their centres.
@Thiird wrote:
Also I need to delete the 6 pins in the middle of the board, I tried deleting them from the board view but it says "Cant delete pin, connected to X", so I thought I first had to delete the pins from the schematic but it says the same thing.
How do I delete connected components?
That's because the library "device" associates the footprint with a "symbol" and connects schematic symbol pins to footprint pads. You can't remove either the pins or the pads while that connection exists.
I would suggest at this point that you probably want to make copies of both the symbol and the footprint, as what you're creating is a slightly-reduced version of the module and should therefore be a different device. Unless, of course, those six middle pads are guaranteed always irrelevant, pre-populated on the top side and only for in-circuit programming, or such like.
If you make copies, you can edit the new symbol and the new footprint to remove the pins, then create a new device using them and only connect what's there.
If you don't make copies, you need to edit the device first, break the connections involving those pins/pads, then you should be able to edit the symbol and footprint. You still need to do the symbol first, so that the device doesn't go through an invalid state of having too few pads for the pins that need to be allocated.
It's well worth having a good thorough read of the manual (installed as a PDF when you installed Eagle) section on library structure. Things make a lot more sense when you understand how the library works!