Deleting and undeleting posts may reverse reputation effects as well, if these posts have votes. Actions previously taken on deleted posts cease to affect reputation within five minutes (source), unless the post meets both the following criteria (in which case the reputation effects will be permanent) (source):
The post had a score of at least +3
The post has been visible on the site for at least 60 days
https://meta.stackexchange.com/a/7238/339911