Usually, when your fingernail falls off, it is because of some kind of injury, like smashing your finger in a door. ( I accidentally did this in my car door)
Usually it will become mostly black and...
use something like a cuticle stick, or something you can get underneath your nail without damaging it, wrap it in cotton wool and dip this into some nail varnish remover, alternatively you could use...