def delete_files(self, dataset_key, names):
        """Delete dataset file(s)

        :param dataset_key: Dataset identifier, in the form of owner/id
        :type dataset_key: str
        :param names: The list of names for files to be deleted
        :type names: list of str
        :raises RestApiException: If a server error occurs

        Examples
        --------
        >>> import datadotworld as dw
        >>> api_client = dw.api_client()
        >>> api_client.delete_files(
        ...     'username/test-dataset', ['example.csv'])  # doctest: +SKIP
        """
        owner_id, dataset_id = parse_dataset_key(dataset_key)
        try:
            self._datasets_api.delete_files_and_sync_sources(
                owner_id, dataset_id, names)
        except _swagger.rest.ApiException as e:
            raise RestApiError(cause=e)