Stop file ingestion without stopping Logstash

Hi Jack,
Thanks for your reply, even I remove the file which is ingesting. still files data will be in memory, so it will continue the ingestion.
Is there any way to clean the memory of particular file.

Thanks,
Uday.K