Turning the destroy step into a script rule