Forum
Automatic deletion of assets
Hi,
I created a page, and using the File button on the text editor, uploaded an asset (a simple text file). I viewed the published page and clicked on the link to view the file -all good.
I then deleted the page. I see in the docs for Assets that unused assets get automatically deleted under certain circumstances, and thought this file would qualify. (No other page references it). But a few days on the file remains. Is this as it should be?
Apologies if this is a dunce question!
PS I don't have
PERCH_DONT_DELETE_FILES
set but is this the cause?Which version are you running? Which text editor did you upload the file using?
Oops sorry Perch Runway: 3.0.4
The text editor I created the file with is Pluma on Ubuntu MATE. I tried one file with no extension and one with
.txt
.Sorry, I meant when you said "File button on the text editor" which editor? SimpleMDE? MarkItUp? Another?
Crikey I'll forget my own face next. I've got
editor="markitup"
.Which version of Perch are you using?
If they get inserted as
[cms:asset]
tags, they should be tracked. If it's older and they get inserted as paths, we can't track them.Perch Runway: 3.0.4 Planning to upgrade to 3.0.9 tonight.
I'd expect them to get cleaned up then.
Oh right.
I upgraded to Runway: 3.0.9. I went to try the same thing experiment as above, but when I pulled up the Select an Asset window (using either Picture and File buttons in Markitup), it now says "No matching assets found", even though there are many files (which display in the Assets app).
I also clicked on By Type, and then Images, and again "No matching assets found" is displayed. However if I do this in the Assets app I get the expected list of images.
By Bucket does seem to work though.
3.0.10 was released yesterday, so you may want to try that.
Updated to 3.0.10. I went to see if the same thing would occur, but when I click on the Picture and File buttons in Markitup they don't respond. (On my dev machine)
If the clean up didn't occur, it probably now won't.
Sorry what I mean is, since I updated to 3.0.10, the Picture and File buttons in Markitup no longer work. (Probably should have started a new thread)
Yes please.