Batch deletion of JSONL files

Joined
Apr 6, 2015
Messages
322
Reaction score
10
Why does a batch file saying 'del C:\Data\Firefox\Bookmarks\ /q' not delete the JSONL files from \bookmarks\ ?
 
Joined
Apr 6, 2015
Messages
322
Reaction score
10
How can that be ? when \bookmarks\ contains
bookmarks-2023-08-09_395_7O3vt8AXoximq6uU+GKclA==.jsonlz4
bookmarks-2023-08-19_396_v+eUP2WLXqgEQwwMCttOIg==.jsonlz4
 
Joined
Sep 26, 2017
Messages
3,457
Reaction score
616
*.json is just an example of what extensions are and the * is a wild card, goes back in computing history for a few decades. The lines you show are what a file name looks like with the .jsonlz4 being the extension which would be used with the asterisk as in *.jsonl4 when wanting to delete all of the file of that type at once without having to type the full file name. The *.* would be used when wanting to delete all the files in the folder at once regardless of the name.
bookmarks-2023-08-09_395_7O3vt8AXoximq6uU+GKclA==.jsonlz4
bookmarks-2023-08-19_396_v+eUP2WLXqgEQwwMCttOIg==.jsonlz4
 
Joined
Oct 26, 2016
Messages
2,398
Reaction score
702
Why does a batch file saying 'del C:\Data\Firefox\Bookmarks\ /q' not delete the JSONL files from \bookmarks\ ?
Not sure why you are complaining about it. Your computer does exactly what you told it to, deleting the jsonl files from the folder. Of course, they do not exist. what you should have written is *.jsonlz4 or *.jsonl??
It it all about the the syntax...
 
Joined
Apr 6, 2015
Messages
322
Reaction score
10
Bighorn - that is exactly how I understood the situation to be, but 'DEL' does not succeed.

Grizzly - shouldn't *.* cover that ?
del C:\Data\Firefox\Bookmarks\*.jsonlz4 /q
also does not work.
 
Joined
Apr 6, 2015
Messages
322
Reaction score
10
The source of those files was C:\Users\USERNAMEHERE\AppData - the ones I want to delete have been copied from there. The current location is C:\Data\Firefox\Bookmarks\
 
Joined
Sep 26, 2017
Messages
3,457
Reaction score
616
The source of those files was C:\Users\USERNAMEHERE\AppData - the ones I want to delete have been copied from there. The current location is C:\Data\Firefox\Bookmarks\
That could be the problem, they may have to be moved back to the original location first. But maybe 'take ownership' will work.
 
Joined
Apr 6, 2015
Messages
322
Reaction score
10
'Take ownership' is NOT needed for manual deletion, so I suspect it should not be needed for deletion by batch either.

If there were a SIMPLE method to 'take owneship' by batch file, I'd consider it, but I doubt if that is the case.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top