Delete a node after X weeks it was created How  can I delete a node after, for example, 2 weeks it has been created?
If you're looking for a developer-centric solution, you can invoke hook_cron() in a custom module to clean up old nodes:

function MYMODULE_cron() {

  // Other conditions can be altered/added as neeed
  $query = \Drupal::entityQuery('node')
    -&gt;condition('created', strtotime('-2 week'), '&lt;=');
  $nids = $query-&gt;execute();
  foreach ($nids as $nid) {
    $node = node_load($nid);
    $node-&gt;delete();
  }
}