def drop_attrs(self, *, deep: bool = True) -> Self:
        """
        Removes all attributes from the DataArray.

        Parameters
        ----------
        deep : bool, default True
            Removes attributes from coordinates.

        Returns
        -------
        DataArray
        """
        if not deep:
            return self._replace(attrs={})
        else:
            return (
                self._to_temp_dataset()
                .drop_attrs(deep=deep)
                .pipe(self._from_temp_dataset)
            )

        Removes all attributes from the DataArray.

        Parameters
        ----------
        deep : bool, default True
            Removes attributes from coordinates.

        Returns
        -------
        DataArray
        
xarray/core/dataarray.py