Moved delete marking to attach action