delete method
Gets and executes a delete Query for element
Throws QueryFailedException if the query was not successful
Implementation
Future<void> delete(T element) async {
final result = await executeQuery(getDeleteQuery(element));
if (result.wasNotSuccessful) {
throw QueryFailedException(result);
}
}