Harvesting FB messages / Twitter tweets according to the time of publication


I was wondering if there was a way to delete FB or Twitter messages on Twitter for certain keywords based on the last 24 hours. At harvest, I found a Google search engine 24 hours a day, but it did not give me any results. Any suggestion in this regard would therefore be welcome.

thank you,