remove from keysTRee if a file has been deleted.
fix bug with splicing during rate limit