Permanently delete a script and all associated data.

Authentication: JWT token required Authorization: Admin access required (ADMIN or SUPERADMIN) Warning: This action is irreversible and deletes all associated data

Path Parameters:

  • script: Script identifier/slug or numeric ID to delete

Deletion Process:

  • Cancels any running executions using this script
  • Deletes all execution history and logs for this script
  • Removes script files and dependencies from storage
  • Deletes script metadata and configuration
  • Removes access control settings
  • Cleans up any associated resources

Success Response Schema:

{
  "data": {
    "id": "script-123",
    "slug": "vegetation-analysis",
    "name": "Vegetation Change Analysis",
    "description": "Analyzes vegetation changes using satellite imagery",
    "status": "DELETED",
    "created_at": "2025-01-15T10:30:00Z",
    "updated_at": "2025-01-15T12:00:00Z",
    "user_id": "user-456",
    "cpu": 2,
    "memory": 4096,
    "logs": false
  }
}

Impact:

  • All executions using this script will be cancelled
  • Historical execution data is permanently lost
  • Script cannot be recovered after deletion
  • Users lose access to download script files

Security Considerations:

  • Only admin users can delete scripts
  • Action is logged for audit purposes
  • Confirmation should be required in client applications

Error Responses:

  • 401 Unauthorized: JWT token required
  • 403 Forbidden: Admin access required
  • 404 Not Found: Script does not exist
  • 500 Internal Server Error: Deletion failed
delete/api/v1/script/{script}

Path parameters

scriptstring required

Path parameter: script

Response

Success

object required

Changes