# Unable to remove "default" data views from Default space

**URL:** <https://discuss.elastic.co/t/unable-to-remove-default-data-views-from-default-space/375376>\
**Category:** Kibana\
**Created:** [March 4, 2025, 12:31pm UTC](https://discuss.elastic.co/t/unable-to-remove-default-data-views-from-default-space/375376 "2025-03-04T12:31:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![petlit2049](https://avatars.discourse-cdn.com/v4/letter/p/e5b9ba/32.png) [@petlit2049](https://discuss.elastic.co/u/petlit2049)\
**Post date:** [March 4, 2025, 12:31pm UTC](https://discuss.elastic.co/t/unable-to-remove-default-data-views-from-default-space/375376/1 "2025-03-04T12:31:47Z")

</div>

Hi!

I'd like to get rid of the following data views from the Default space:

- logs-\*
- metrics-\*
- synthetics-dashboard  
and I'm using ansible to set up my custom environments. One of my tasks does the following:

```auto
            - name: Removing dataviews "logs-*", "metrics-*", "synthetics-dashboard"...
              ansible.builtin.uri:
                url: "http://{{ dynamic_data.elastic_setup_userenv.kibana_host }}:{{ dynamic_data.elastic_setup_userenv.kibana_port }}/api/data_views/data_view/{{ item | urlencode }}"
                url_username: "{{ dynamic_data.elastic_setup_userenv.elastic_superuser }}"
                url_password: "{{ dynamic_data.elastic_setup_userenv.elastic_superuser_password }}"
                status_code: [200]
                force_basic_auth: true
                headers:
                  kbn-xsrf: true
                validate_certs: false
                method: DELETE
              loop:
                - logs-*
                - metrics-*
                - synthetics-dashboard
              delegate_to: localhost

```

The call returns 200 so everything seems to go fine for all three entries. However, when I log into Kibana the data views are still there. What am I doing wrong here? I'm running 8.10.x

Cheers
