Answers.Body: <p>Any content or relationships that belong to the Matrix block will also be deleted, <em>when you save the entry</em>. If there were any relationships, the target elements won’t be deleted, though.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-05T14:24:47.793Z
Answers.Text: To be clear – OP specifically mentions editing an entry – if you're deleting a Matrix block while editing an entry, the Matrix block (and it's data/content) won't _actually_ be deleted until you (re)save the entry.
Answers.UserDisplayName: Mats Mikkel Rummelhoff
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-05T18:40:38.397Z
Answers.Text: @MatsMikkelRummelhoff Hm yeah ok, just clarified the answer.
Answers.UserDisplayName: Brandon Kelly
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-05T11:16:03.397Z
Answers.LastActivityDate: 2017-11-05T18:40:15.970Z
Answers.LastEditDate: 2017-11-05T18:40:15.970Z
Answers.UserDisplayName: Brandon Kelly
Body: <p>If I delete the Matrix block content (while editing an entry) does the associated is deleted as well or only the block but its data still remains in db?</p>
  
Tags: <matrix><database><performance><optimization>
Title: Deleted matrix block means deleted data?
ThreadText: # Deleted matrix block means deleted data?
  
  (Asked by: username_0 on 2017-11-04)
  
  If I delete the Matrix block content (while editing an entry) does the associated is deleted as well or only the block but its data still remains in db?
  
  **Tags:** matrix, database, performance, optimization
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-11-05. Score: 3 | Accepted answer
  
  Any content or relationships that belong to the Matrix block will also be deleted, *when you save the entry*. If there were any relationships, the target elements won’t be deleted, though.
  
  > **Comments:**
  > **username_2**: To be clear – OP specifically mentions editing an entry – if you're deleting a Matrix block while editing an entry, the Matrix block (and it's data/content) won't _actually_ be deleted until you (re)save the entry.  
  > **username_1**: @username_2 Hm yeah ok, just clarified the answer.  
  
  ---
  
  