Drop schema not working - Cloud API

Hi,

I’ve followed the instructions here, but unfortunately using allDataAndSchema: true results in

ClientError: Failed to delete data
Code: 200

The parameter allData: true works (but obviously only deletes data). I have also tried if it falls if there is no data but just a schema. Unfortunately the mutation always fails, regardless of there is

  • only a schema
  • a schema and data
  • only data

Here’s the mutation for completeness:

mutation {
    dropData(allDataAndSchema: true) {
      response {
        code
        message 
      } 
    }  
  }

Hi Florian,
Thanks for sharing the mutation. The drop all option with allDataAndSchema set to true is only reserved for administrators on Dgraph cloud. A user cannot execute this operation.

You can drop the predicates one by one via Ratel or use an alter api option available in Dgraph clients.