A safety needle device comprising a body piece including a rear end connected to a cannula and a front end having a needle for connecting to a patient, a sliding gap at the front end of the body piece, a lock button at a rear end of the body piece, a sliding piece adopting a locked position wherein the sliding piece is folded and locked onto the body piece and a sliding position wherein the sliding piece is unfolded and unlocked from the body piece retaining flaps at a bottom of the sliding piece for receiving the fingers of a hand of a user when the needle device must be disconnected from the patient, and locking parts in the sliding piece to lock the sliding piece and the body piece in a position wherein the needle is removed from the patient and protected by walls of the sliding piece.