Deploy and delete functions working v2