﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
22891	"Document that ""collectstatic --clear"" deletes all files in the storage directory"	nina@…	nobody	"When calling ""collectstatic --clear,"" I would expect that only static files would be deleted, but in fact all files in the static file folder were deleted.

I am using storages and s3boto to serve static content and media. Here are the related settings values:

INSTALLED_APPS = (
...
'storages',
...
'django.contrib.staticfiles',
...
)

AWS_STORAGE_BUCKET_NAME = ""bucketname""
MEDIA_ROOT = ''
MEDIA_URL = ""//%s.s3.amazonaws.com/"" % AWS_STORAGE_BUCKET_NAME
STATICFILES_STORAGE = 'storages.backends.s3boto.S3BotoStorage'
STATIC_ROOT = os.path.join(VAR_ROOT, 'static')
STATIC_URL = 'http://%s.s3.amazonaws.com/' % AWS_STORAGE_BUCKET_NAME


When I ran ""collectstatic --clear,"" the media files and the static files were deleted, but I would expect that only static files would effected by this call. 

Ideally this command would only effect static files, but at the very least there would be a warning in the documentation that this deletes all content in the static folder.
"	Cleanup/optimization	closed	Documentation	1.6	Normal	fixed		Coen van der Kamp	Accepted	1	0	0	0	1	0
