Add ability to handle resource deletion/restore.