delete static method

Future<ParseDocResponse> delete(
  1. String collection,
  2. String id

deletes the document in collection with id throws UnsupportedError if user has no access rights or document ist does not exist


static Future<ParseDocResponse> delete(String collection, String id) async {
  var response = await http.delete('$_url/parse/classes/$collection/$id',
      headers: _headers);
  return ParseDocResponse(response.statusCode == 200,
      DocReference(collection, id),;