Removes trailing files