Overview
Theremove command deletes a monitored URL from the system by its ID. This stops all monitoring and alerting for that URL.
Usage
Aliases
rm
Description
Theremove command permanently deletes a URL from monitoring. It removes the entry from the database and cleans up all associated data in Redis. Once removed, the URL will no longer be checked and no alerts will be sent.
Arguments
The unique identifier of the URL to remove. You can find this ID using the
list command.Flags
This command has no flags.Examples
Remove a URL by ID
Using the short alias
Find ID and remove
First, list all URLs to find the ID:Validation
The command performs the following validations:- ID required: The ID argument must be provided and greater than 0
- URL exists: The URL with the specified ID must exist in the database
- Database connection: Must successfully connect to PostgreSQL
- Redis connection: Must successfully connect to Redis
Error handling
Missing ID argument
Invalid ID (0 or negative)
URL not found
Database connection failed
If PostgreSQL is not accessible:.env are correct.
What happens when you remove a URL?
- The URL entry is deleted from the PostgreSQL database
- The URL is removed from its Redis monitoring queue
- All historical monitoring data for that URL is preserved (status checks, incidents)
- The Redis interval cache is refreshed to reflect the removal
- No further health checks or alerts will be sent
Removing a URL does not delete historical data like past incidents or status checks. This data remains in the database for historical analysis.
Technical details
- The command first retrieves the URL to determine its monitoring frequency
- It then deletes the database entry
- Finally, it refreshes the Redis cache for that frequency interval
- This ensures the monitoring loop no longer attempts to check the removed URL
Common use cases
Decommissioned service
When a service is retired:Duplicate entry
If you accidentally added a URL twice:Testing cleanup
After testing, remove test URLs:See also
- add command - Add a new URL to monitor
- list command - View all monitored URLs and their IDs
- analysis command - View statistics before removing