when minio server run on windows 10, when execute command python manage.py collectstatic -c, It can not remove already existing file. because the object_name contains \\ dobule backslash. replace \\ with \, the file can delete successfully. or override the method delete() of class MinioStaticStorage . as below shown.
class CustomMinioStaticStorage(MinioStaticStorage): def delete(self, name: str) -> None: name = name.replace('\\', '/') super().delete(name)