@@ -0,0 +1,538 @@
+import logging%0Afrom modularodm import Q%0Afrom website.app import init_app%0Afrom website.addons.osfstorage.model import OsfStorageFileNode%0Afrom scripts import utils as scripts_utils%0A%0A%0Alogger = logging.getLogger(__name__)%0A%0A%0Adef main():%0A    for file in OsfStorageFileNode.find(Q('is_deleted', 'eq', True)):%0A        file.delete()%0A        logger.info(u'Moving %7B!r%7D to the trashed collections'.format(file))%0A%0A%0Aif __name__ == '__main__':%0A    scripts_utils.add_file_logger(logger, __file__)%0A    init_app(set_backends=True, routes=False)%0A    main()%0A

Add migration script for deleted osfstorage