---
title: How do I manage a Target's Lifecycle?
description: You can mark Targets Inactive or Delete them in bulk using lifecycle rules.
---

[Skip to content](https://support.nopsec.com/knowledge/how-do-i-manage-a-targets-lifecycle#main-content)

English

Show submenu for translations

![nopsec-full-logo-white.png\]](https://support.nopsec.com/hs-fs/hubfs/Images/Logos/NopSec%20Logos/nopsec-full-logo-white.png?height=40&name=nopsec-full-logo-white.png)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations
- [NopSec.com](https://www.nopsec.com/)

[NopSec.com](https://www.nopsec.com/)

 Welcome to the NopSec Knowledge Base. Start your search below.

- There are no suggestions because the search field is empty.

1. [Knowledge Base](https://support.nopsec.com/knowledge?hsLang=en)
2. [New Features](https://support.nopsec.com/knowledge/new-features?hsLang=en)

# How do I manage a Target's Lifecycle?

## You can mark Targets Inactive or Delete them in bulk using lifecycle rules.

### Last Updated 4/29/2024

#### Overview

If you notice that your scanner has not rescanned a set of targets in the last X days you may want to mark those targets as inactive such that their vuln instances can be ignored by your analysts. 

Or you may choose to delete targets that have not been scanned in a certain period so that your metrics and workflows are not affected by this data. 

You can now create Lifecycle rules within your Settings page.

 

### Walkthrough

#### Permissions

Users must have settings.write permissions in order to enable and configure a Lifecycle Rule.

#### Last Scan Date

In order to test what targets would be marked inactive if a rule were to be enabled, use the following query in your Prioritize page:

`target.last_scan < "-Xd"`

- Replace X with the number of days you'd like to use.
- This query is using a relative date syntax and reads as: 
    - Find all targets with a last scan date before (\<) Today minus X days (d).

#### Inactive Rules

You can enable or disable the Target Inactive rules in your Settings | Lifecycle tab.

If you enable the rule you can place a number which the number of Days you would like use in the query above. 

Once you've placed a number you can hit Save at the top of the screen.

Note: This number must always be lower than your Target Deletion rules (if enabled).

#### Deletion Rules

You can enable or disable the Target Deletion rules in your Settings | Lifecycle tab.

If you enable the rule you can place a number which the number of Days you would like use in the query above. 

Once you've placed a number you can hit Save at the top of the screen.

Note: This number must always be higher than your Target Inactive rules (if enabled).

#### Rule Schedule

The lifecycle rules will run once a day at the end of the day around 10:00 pm to 12:00 am EST. 

 

 

``

- [NopSec Platform 101](https://support.nopsec.com/knowledge/nopsec-platform-101?hsLang=en)
- [Implementation/Admin Learning Path](https://support.nopsec.com/knowledge/implementation-admin-learning-path?hsLang=en)
- [Analyst/Remediator Learning Path](https://support.nopsec.com/knowledge/analyst-remediator-learning-path?hsLang=en#main-content)

    - [Reporting](https://support.nopsec.com/knowledge/analyst-remediator-learning-path?hsLang=en#reporting)
    - [Workflow (Remediation/Exception)](https://support.nopsec.com/knowledge/analyst-remediator-learning-path?hsLang=en#workflow-remediation-exception)
    - [Insights](https://support.nopsec.com/knowledge/analyst-remediator-learning-path?hsLang=en#insights)
    - [Asset Management](https://support.nopsec.com/knowledge/analyst-remediator-learning-path?hsLang=en#asset-management)
- [New Features](https://support.nopsec.com/knowledge/new-features?hsLang=en)
- [Training Videos](https://support.nopsec.com/knowledge/training-videos?hsLang=en)
- [Release Notes](https://support.nopsec.com/knowledge/release-notes?hsLang=en)

[![Chill listening crop-3](https://support.nopsec.com/hs-fs/hubfs/Images/Logos/NopSec-logo-160x160.png?width=24&height=24&name=NopSec-logo-160x160.png "Chill listening crop-3")](https://www.nopsec.com)

NopSec Knowledge Base

Copyright © 2026, NopSec