```dart import 'package:amplify_flutter/amplify_flutter.dart'; import 'models/ModelProvider.dart'; Future deletePostWithID123AndItsComments(String id) async { try { final post = (await Amplify.DataStore.query( Post.classType, where: Post.ID.eq(id), )) .first; // DataStore also deletes all associated comments with this operation await Amplify.DataStore.delete(post); } on DataStoreException catch (e) { safePrint('Something went wrong deleting models: ${e.message}'); } } ```