And when i try to clear the color palette the whole drawing disappears
You are in indexed color mode. This mode can only use colors that are in your palette. To be able to use colors that are not in your palette, you either need to click the red ! next to the color, or change to Sprite > color mode > rgb color
That was fast! thank you so much dogboydog!