# Delete Type from Schema

**URL:** <https://discuss.dgraph.io/t/delete-type-from-schema/5311>\
**Category:** Users\
**Tags:** mutation\
**Created:** [October 29, 2019, 4:43pm UTC](https://discuss.dgraph.io/t/delete-type-from-schema/5311 "2019-10-29T16:43:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![johannes](https://avatars.discourse-cdn.com/v4/letter/j/7ba0ec/32.png) [@johannes](https://discuss.dgraph.io/u/johannes)\
**Post date:** [October 29, 2019, 4:43pm UTC](https://discuss.dgraph.io/t/delete-type-from-schema/5311/1 "2019-10-29T16:43:54Z")

</div>

How can I delete a type from the schema.  
Ratel doesn’t seem to offer a drop button for Types, only for Predicates.  
In the docs I could find how to delete a predicate/ attribute:

```auto
curl -X POST localhost:8080/alter -d '{"drop_attr": "mypredicate"}'

```

What’s the equivalent for type?  
Or how do I delete a type from the console in ratel?

Thank you!!

---

<div class="post-metadata">

**Author:** ![MichelDiz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/micheldiz/32/11873_2.png) [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Post date:** [October 29, 2019, 7:35pm UTC](https://discuss.dgraph.io/t/delete-type-from-schema/5311/2 "2019-10-29T19:35:41Z")

</div>

Here [https://docs.dgraph.io/master/query-language/#deleting-a-type](https://docs.dgraph.io/master/query-language/#deleting-a-type)

You can’t do it from Ratel for now.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex007/uploads/dgraph/original/2X/2/2b38fdece2abe5814f2e51bee69d1e67fc304b0a.png) [@system](https://discuss.dgraph.io/u/system)\
**Post date:** [November 28, 2019, 7:35pm UTC](https://discuss.dgraph.io/t/delete-type-from-schema/5311/3 "2019-11-28T19:35:43Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
