<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:39:46 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CSHARP-1494] Add GridFs.DeleteByNameAsync(filename) to new GridFs</title>
                <link>https://jira.mongodb.org/browse/CSHARP-1494</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;This existed in previous legacy driver. Right now I am running a FindAsync by filename to find all files to delete.&lt;/p&gt;</description>
                <environment></environment>
        <key id="242440">CSHARP-1494</key>
            <summary>Add GridFs.DeleteByNameAsync(filename) to new GridFs</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="cs-NET">Christian Sleight [X]</reporter>
                        <labels>
                    </labels>
                <created>Sat, 5 Dec 2015 20:17:01 +0000</created>
                <updated>Tue, 17 Oct 2017 01:35:27 +0000</updated>
                            <resolved>Tue, 17 Oct 2017 01:35:27 +0000</resolved>
                                    <version>2.1.1</version>
                                                    <component>GridFS</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1106391" author="rstam" created="Sat, 5 Dec 2015 21:06:01 +0000"  >&lt;p&gt;The current GridFS spec does not support deleting a file by name. Mainly this is to avoid any confusion that might arise when there are multiple revisions of the same filename (what is the caller&apos;s intent: delete which revision? delete all revisions?).&lt;/p&gt;

&lt;p&gt;With the current API the recommended way is to do what you are doing: use FindAsync to find all the revisions and delete them one by one. The code would be very similar to the example given for renaming all revisions of a filename:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://mongodb.github.io/mongo-csharp-driver/2.1/reference/gridfs/deletingandrenamingfiles/#renaming-all-revisions-of-a-file&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://mongodb.github.io/mongo-csharp-driver/2.1/reference/gridfs/deletingandrenamingfiles/#renaming-all-revisions-of-a-file&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hset2f:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>