Answers.Body: <p>But as far as i researched, their currently is no built in feature to archive this.</p>
  <p>I setup my server with a cronjob that runs the following script periodically: <code>find &lt;image-dir&gt; -type d -regextype sed -regex &quot;.*/_[0-9]\{3,4\}x[0-9]\{3,4\}.*&quot; -exec rm -rv {} \;</code></p>
  <p>This will delete all folders that look like this example: <code>_650x430_center_center</code>.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-01-28T10:55:52.490Z
Answers.LastActivityDate: 2022-01-28T10:55:52.490Z
Answers.UserDisplayName: Leonardo
Body: <p>Is it possible to remove/delete all, via transformer, generated images? Leaving the original be.</p>
  <p>Craft creates new directories to handle these images. So i could create a script in combination with a crontab that deletes said directories.</p>
  <p>My question is if craft already has this function?</p>
  
Tags: <craft3><assets><console>
Title: Remove dynamicly transformed images
ThreadText: # Remove dynamicly transformed images
  
  (Asked by: username_0 on 2021-12-21)
  
  Is it possible to remove/delete all, via transformer, generated images? Leaving the original be.
  
  Craft creates new directories to handle these images. So i could create a script in combination with a crontab that deletes said directories.
  
  My question is if craft already has this function?
  
  **Tags:** craft3, assets, console
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2022-01-28. Score: 1 | Accepted answer
  
  But as far as i researched, their currently is no built in feature to archive this.
  
  I setup my server with a cronjob that runs the following script periodically: `find <image-dir> -type d -regextype sed -regex ".*/_[0-9]\{3,4\}x[0-9]\{3,4\}.*" -exec rm -rv {} \;`
  
  This will delete all folders that look like this example: `_650x430_center_center`.
  
  
  ---
  
  