Completed delete button for files and folders

Doesn't @doc destroy naturally act upon the correct doc? Do you need to make a new line that passes in the params?