def clear(self, encoding=Constants.default_codec):
        """
        Clears the defined file content.

        :param encoding: File encoding codec.
        :type encoding: unicode
        :return: Method success.
        :rtype: bool
        """

        if foundations.strings.is_website(self.__path):
            raise foundations.exceptions.UrlWriteError(
                "!> {0} | '{1}' url is not writable!".format(self.__class__.__name__, self.__path))

        if self.uncache():
            LOGGER.debug("> Clearing '{0}' file content.".format(self.__path))
            return self.write(encoding=encoding)
        else:
            return False
Clears the defined file content.

        :param encoding: File encoding codec.
        :type encoding: unicode
        :return: Method success.
        :rtype: bool