# Asynchronous file deletion -\> fixed order?

**URL:** https://forum.kirupa.com/t/asynchronous-file-deletion-fixed-order/300676
**Category:** flash
**Created:** [November 25, 2009, 12:21pm UTC](https://forum.kirupa.com/t/asynchronous-file-deletion-fixed-order/300676 "2009-11-25T12:21:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Dauntless](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/dauntless/32/749_2.png) [@Dauntless](https://forum.kirupa.com/u/Dauntless)
#### Post date: [November 25, 2009, 12:21pm UTC](https://forum.kirupa.com/t/asynchronous-file-deletion-fixed-order/300676/1 "2009-11-25T12:21:00Z")

</div>

Hi,

Simple test:

```auto
private function init():void
            {
                var f:File = File.applicationStorageDirectory.resolvePath("movie.avi");
                f.addEventListener(Event.COMPLETE, com1);
                f.deleteFileAsync();
                var f2:File = File.applicationStorageDirectory.resolvePath("file.txt");
                f2.addEventListener(Event.COMPLETE, com2);
                f2.deleteFileAsync();
            }
           
            function com1(e:Event):void
            {
                trace("movie deleted");
            }
            function com2(e:Event):void
            {
                trace("file deleted");
            }

```

Where ‘movie.avi’ is about 800mb and file.txt is an empty text file. In this simple test, the “movie deleted” is traced before the “file deleted”. My question is: will this always be the case?

In general: Will multiple asynchronous commands be handles in the same order as they have been started?

I’ve spent enough hours googeling, but I couldn’t find any documentation specific to this problem.

Thanks!
