Adding layer to terrain crashed Unity, now project won't open anymore

As per title.
I was just selecting the texture to add a new layer to a terrain, when it suddenly crashed.

Tried to delete ShaderCache and StateCache but it didn’t work.

The project loading stops at Initialize Asset Database:

Try deleting Library folder.

Thank you a lot, that worked!