Below, you query for an instance with an `id` of `123`, and then delete it, if found:

```dart
import 'package:amplify_flutter/amplify_flutter.dart';

import 'models/ModelProvider.dart';

Future<void> deletePostsWithId() async {
  final postToDelete = (await Amplify.DataStore.query(
    Post.classType,
    where: Post.ID.eq('123'),
  ))
      .first;

  try {
    await Amplify.DataStore.delete(postToDelete);
  } on DataStoreException catch (e) {
    safePrint('Something went wrong deleting model: ${e.message}');
  }
}
```
