Change delete attribute access to use square braces.