added --delete-after to attach command as well