def delete_table(self, resource_id, **kwargs):
        """Deletes a datastore table.

        Args:
            resource_id (str): The datastore resource id.
            **kwargs: Keyword arguments that are passed to datastore_create.

        Kwargs:
            force (bool): Delete resource even if read-only.
            filters (dict): Filters to apply before deleting, e.g.,
                {"name": "fred"}. If missing delete whole table and all
                dependent views.

        Returns:
            dict: Original filters sent if table was found, `None` otherwise.

        Raises:
            ValidationError: If unable to validate user on ckan site.

        Examples:
            >>> CKAN(quiet=True).delete_table('rid')
            Can't delete. Table `rid` was not found in datastore.
        """
        kwargs.setdefault('force', self.force)
        kwargs['resource_id'] = resource_id
        init_msg = "Can't delete. Table `%s`" % resource_id
        err_msg = '%s was not found in datastore.' % init_msg
        read_msg = '%s is read only.' % init_msg

        if self.verbose:
            print('Deleting table `%s` from datastore...' % resource_id)

        try:
            result = self.datastore_delete(**kwargs)
        except NotFound:
            print(err_msg)
            result = None
        except ValidationError as err:
            if 'read-only' in err.error_dict:
                print(read_msg)
                print("Set 'force' to True and try again.")
                result = None
            elif err.error_dict.get('resource_id') == ['Not found: Resource']:
                print(err_msg)
                result = None
            else:
                raise err

        return result