This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[Windows] i want to share a Kdenlive deletion batch.

Tags: None
(comma "," separated)
User avatar
bartoloni
Moderator
Posts
1510
Karma
4
OS
This can be usefull when trying multiple versions of Kdenlive... i use this every day to test the nightly builds
the script is very easy... it's just deleting folders/files Kdenlive related

LAUNCHING THIS SCRIPT WILL DESTROY KDENLIVE
INSTALLATION AND ALL SAVED PREFERENCES AND CUSTOM PROFILES
(BE SURE TO NOT HAVE PERSONAL PROJECTS SAVED ON KDENLIVE FOLDERS)

Image

the script is here:

Code: Select all
CLS
;@echo off
@echo    __       .___            .__  .__          ]+[
@echo " |  | __ __| _/____   ____ |  | |__|__  __ ____   
@echo " |  |/ // __ |/ __ \ /    \|  | |  \  \/ // __ \ 
@echo " |    </ /_/ \  ___/|   |  \  |_|  |\   /\  ___/ 
@echo " |__|_ \____ |\___  >___|  /____/__| \_/  \___  >
@echo        \/    \/    \/     \/                   \/ 
@echo                                              .__   
@echo " _______   ____   _____   _______  _______  |  | 
@echo " \_  __ \_/ __ \ /     \ /  _ \  \/ /\__  \ |  | 
@echo "  |  | \/\  ___/|  Y Y  (  <_> )   /  / __ \|  |__
@echo "  |__|    \___  >__|_|  /\____/ \_/  (____  /____/
@echo                \/      \/                  \/04-2023
@echo .
setlocal
:PROMPT
SET /P AREYOUSURE=Are you sure (Y/[N])?
IF /I "%AREYOUSURE%" NEQ "Y" GOTO END
cls
echo ... Killing processes ...
taskkill /IM "kioslave5.exe" /T /F
taskkill /IM "kdenlive.exe" /T /F
taskkill /IM "dbus-daemon.exe" /T /F
taskkill /IM "gpgme-w32spawn.exe" /T /F
taskkill /IM "ffplay.exe" /T /F
taskkill /IM "ffprobe.exe" /T /F
taskkill /IM "ffmpeg.exe" /T /F
taskkill /IM "melt.exe" /T /F
taskkill /IM "kdenlive_render.exe" /T /F
wmic process where name='kdenlive.exe' delete
wmic process where name='kioslave5.exe' delete
wmic process where name='dbus-daemon.exe' delete
wmic process where name='gpgme-w32spawn.exe' delete
wmic process where name='ffplay.exe' delete
wmic process where name='ffprobe.exe' delete
wmic process where name='ffmpeg.exe' delete
wmic process where name='melt.exe' delete
wmic process where name='kdenlive_render.exe' delete

echo ... deleting content of Kdenlive-related folders ...
del %LOCALAPPDATA%\kdenlive\*.* /s /q
del %LOCALAPPDATA%\cache\*.* /s /q
del %LOCALAPPDATA%\mime\*.* /s /q
del %LOCALAPPDATA%\kdenliverc /s /q   
del %LOCALAPPDATA%\user-places.xbel /s /q   
del %LOCALAPPDATA%\user-places.xbel.tbcache /s /q   
del %LOCALAPPDATA%\kdenlive-layoutsrc /s /q   
del %LOCALAPPDATA%\user-places.xbel.bak /s /q   
del %LOCALAPPDATA%\klanguageoverridesrc /s /q   
del %LOCALAPPDATA%\knewstuff3\*.* /s /q   
del %LOCALAPPDATA%\kxmlgui5\*.* /s /q   
del %LOCALAPPDATA%\kdeglobals /s /q   
del %LOCALAPPDATA%\cache\qtshadercache-x86_64-little_endian-llp64\*.* /s /q
del %APPDATA%\.kde\*.* /s /q
del %APPDATA%\.kde\cache-pc\*.* /s /q
del %APPDATA%\.kde\share\*.* /s /q
DEL %APPDATA%\kdenlive\*.* /s /q
echo ... deleting main application ...
del "c:\program files\kdenlive\*.*" /s /q >nul
echo ... deleting Kdenlive-related folders ...

RMDIR /Q/S "c:\program files\kdenlive"
RMDIR /Q/S "%LOCALAPPDATA%\kdenlive"
RMDIR /Q/S "%LOCALAPPDATA%\knewstuff3"
RMDIR /Q/S "%LOCALAPPDATA%\kxmlgui5"
RMDIR /Q/S "%APPDATA%\kdenlive"
RMDIR /Q/S "%LOCALAPPDATA%\cache\qtshadercache-x86_64-little_endian-llp64"
RMDIR /Q/S "%APPDATA%\.kde"
RMDIR /Q/S "%LOCALAPPDATA%\mime"


@echo     .___                   
@echo "  __| _/____   ____   ____ 
@echo " / __ |/  _ \ /    \_/ __ \
@echo "/ /_/ (  <_> )   |  \  ___/
@echo "\____ |\____/|___|  /\___  >
@echo      \/           \/     \/
@echo .   
set /p DUMMY=Hit ENTER to continue...
:END
endlocal

rem HISTORY:
rem 08-2021 initial release
rem 09-2021 replaced "%programfiles%" with "c:\program files" because is not working on Windows 7
rem 10-2021 added deletion of "klanguageoverridesrc"   
rem 12-2021 added deletion of "kxmlgui5" and "knewstuff3"
rem 03-2022 added deletion of "qtshadercache-x86_64-little_endian-llp64"
rem 04-2023 added deletion of ".kde" and "mime"


and can be downloadable from here: http://www.wcn.it/Execute-as-administra ... olders.zip

waiting for suggestions and modifications to do...

Last edited by bartoloni on Tue Apr 25, 2023 10:51 am, edited 2 times in total.
User avatar
bartoloni
Moderator
Posts
1510
Karma
4
OS
new update for december, added these 5 lines:

Code: Select all
del %LOCALAPPDATA%\knewstuff3\*.* /s /q   
del %LOCALAPPDATA%\kxmlgui5\*.* /s /q   
del %LOCALAPPDATA%\kdeglobals /s /q   
RMDIR /Q/S "%LOCALAPPDATA%\knewstuff3"
RMDIR /Q/S "%LOCALAPPDATA%\kxmlgui5"


this fix the tool bar when new editing tools are not displayed. ( kxmlgui5\kdenlive\kdenliveui.rc )
atotya
Registered Member
Posts
1
Karma
0
Dear Bartaloni!
Thank you very much for this bat. file!
I ruined the multimedia accelerator selection and I had to reinstall the KdenLive program (Standalone mode) in Windows.
It works very well!
Many many thanks,
Akos (atotya) :) :) :)
User avatar
bartoloni
Moderator
Posts
1510
Karma
4
OS


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]