import os
import platform
from pathlib import Path

def delete_john_pot():
    system = platform.system()

    paths = []

    if system == "Linux":
        paths = [
            Path("/etc/john/john.pot"),
            Path.home() / ".john/john.pot"
        ]

    elif system == "Windows":
        paths = [
            Path(r"C:\ProgramData\JohnTheRipper\john.pot")
        ]

    for p in paths:
        if p.exists():
            try:
                p.unlink()
                print(f"Deleted: {p}")
            except PermissionError:
                print(f"Permission denied: {p}")
        else:
            print(f"Not found: {p}")


if __name__ == '__main__':
    delete_john_pot()