Several lines of evidence indicate that sleep plays a critical role in learning and memory. The aim of this study was to evaluate anesthesia resistant memory following sleep deprivation in Drosophila. Four to 16 h after aversive olfactory training, flies were sleep deprived for 4 h. Memory was assessed 24 h after training. Training, sleep deprivation, and memory tests were performed at different times during the day to evaluate the importance of the time of day for memory formation. The role of circadian rhythms was further evaluated using circadian clock mutants. Memory was disrupted when flies were exposed to 4 h of sleep deprivation during the consolidation phase. Interestingly, normal memory was observed following sleep deprivation when the memory test was performed during the 2 h preceding lights-off, a period characterized by maximum wake in flies. We also show that anesthesia resistant memory was less sensitive to sleep deprivation in flies with disrupted circadian rhythms. Our results indicate that anesthesia resistant memory, a consolidated memory less costly than long-term memory, is sensitive to sleep deprivation. In addition, we provide evidence that circadian factors influence memory vulnerability to sleep deprivation and memory retrieval. Taken together, the data show that memories weakened by sleep deprivation can be retrieved if the animals are tested at the optimal circadian time.