To delete a file or folder, click on the three dots next to the file/folder name and select the Delete.