Remove temporary directories

Remove temporary directories which gets created when there is
more data that can fit in memory. After operation finishes they
are no longer required.
For example: for operations such as sorting