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

Implementation

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