Update Main.php

Remove attachment on disable