If it is hard it is not a worm. It is most likely the leftover hard mucous from a sinus infection. When the mass gets rather large and hard the body cannot readily reabsorb it. It will probably have to be cut out. There are many threads showing successful removal.