+
+
+
Remember to abide by the Community Guidelines
+
+
+
+
-
Select a colour and starting location.
+
Select a colour and starting location.
diff --git a/server/db/scripts/deleteMessage.txt b/server/db/scripts/deleteMessage.txt
new file mode 100644
index 000000000..ee12fe312
--- /dev/null
+++ b/server/db/scripts/deleteMessage.txt
@@ -0,0 +1,17 @@
+const mainDocumentId = ObjectId('');
+const conversationId = ObjectId('');
+const messageId = ObjectId('');
+
+db.games.findOne({
+ _id: mainDocumentId,
+ "conversations._id": conversationId
+})
+
+db.games.updateOne(
+{
+ _id: mainDocumentId,
+ "conversations._id": conversationId
+},
+{
+ $pull: { "conversations.$.messages": { _id: messageId } }
+});
\ No newline at end of file