You can cast glyph of warding once using a warlock spell slot. You can’t do so again until you finish a long rest.
When you cast glyph of warding in your Book of Shadows, you can cast it without expending material components; your Book of Shadows can have one such glyph of warding in it at a time. You can dispel a glyph of warding in your Book of Shadows by using your action and touching the glyph. A glyph of warding in your Book of Shadows remains intact even if your Book of Shadows is moved more than 10 feet from where you cast the spell.