Skip to content

Instantly share code, notes, and snippets.

@T-One
T-One / gist:703c631b92ca3529facdf70a4fb08051
Created January 10, 2024 12:53
delete orphans on immich server via API
#!/usr/bin/env python3
import json
import requests
import argparse
from datetime import datetime
# Function to prompt the user for API key and Immich server address
def prompt_for_credentials():
api_key = input('Enter API key: ')
#!/usr/bin/env python3
import json
import requests
import argparse
from datetime import datetime
def prompt_for_credentials():
api_key = input('Enter API key: ')
immich_server = input('Enter full address including http and port (e.g. http://192.168.0.1:2283): ')