Help & Support
Book a demo
Community
Book a demo
Help & Support
Logtail
Log management & analysis
Better Uptime
Incident management
Log management
Collect insights across your stack
Uptime monitoring
Get a call when your website goes down
Incident management
Alert the right person on your team
Public status page
Communicate downtime & build trust
Work at Better Stack
Engineering
Documentation
  • Better Uptime
  • Logtail
GitHub
Better Uptime
Logtail
Explore documentation
  1. Welcome to Logtail 👋
  2. Quick start guide
  3. Logs sources
    1. Languages
    2. Cloud
    3. Web Servers
    4. Servers
    5. Databases
    6. Containers & Clusters
    7. HTTP REST API
  4. Integrations
    1. Slack
  5. Log Forwarding
    1. Vector (Recommended)
    2. Fluent Bit
    3. Logstash
    4. Fluentd
    5. Syslog
  6. API
    1. Get started with Logtail API
    2. Sources API
      1. List all existing sources GET
      2. Get a single source GET
      3. Create a source POST
      4. Update a source PATCH
      5. Delete an existing source DELETE
      6. Sources API response parameters
    3. Query API
  7. Using Logtail
    1. AWS S3-compatible archive
    2. String + JSON format
    3. Live Tail Query Language
    4. Querying data in Logtail
    5. GeoIP map visualization

Delete an existing source

Permanently deletes an existing source.

DELETE https://logtail.com/api/v1/sources/{source_id}

URL parameters

id
required string

ID of the source you want to delete

Headers

Authorization
required string

Bearer YOUR_API_TOKEN

204

The source was deleted.

404

Your team has no source with the given ID

Response body

{
  "errors": "Resource with provided ID was not found"
}
info

Don't have your API token?

Please, see obtaining an API token

Looking for details of a specific parameter?

Explore list of all Sources API response parameters


Previous article

Update a source

Next article

Sources API response parameters

Better Stack
All systems operational

[email protected]
+1 (201) 500-2007
Platform
Better Uptime Logtail
Community
Guides Questions Comparisons Write for Us
Company
Work at Better Stack Engineering
Social
Twitterexternal link LinkedInexternal link
Solutions
Log management Uptime monitoring Incident management Status Page
Resources
Help & Support Better Uptime docsexternal link Logtail docsexternal link
Compare
Pingdom Pagerduty StatusPage.io Uptime Robot StatusCake Opsgenie VictorOps
All systems operational
[email protected]
+1 (201) 500-2007
© 2023 Better Stack, Inc. All rights reserved. Better Stack
Terms of Use Privacy Policy GDPR