How to remove all packages from specific repo without dependencies
Print list of all repositories to get repo id (first column): $ dnf repolist Now remove all packages of selected repo: # dnf repository-packages <repo-id> remove See repository-packages section of dnf manual page for details regarding manipulation with all packages in specific repository.