#  Deleting files 

 



 ##  

  expand\_more  

 
  

 

## How to delete files from your website

When you [upload a file](https://drupal.harvardsites.harvard.edu/linking-file) to your site, Drupal creates a media item (a reference or pointer to the file). To fully delete a file from your site, you should delete the media item as well.

This will make sure that both items are deleted from your site and no longer indexed by search engines.

### Step 1: Find the file you want to delete

1. Log in to your site and go to **Content &gt; Media &gt; Media Library.**
2. Look for the file you want to delete from the list of files (or use the search function to search for the file).
3. Click on the edit icon for the file you want to delete (the icon looks like a pencil).
4. You will see a **Delete** tab at the top of the page, as well as a **Delete** button at the bottom of the page next to the **Save** button.
5. Click on **Delete**. You will be asked to confirm if you’re sure you want to delete the media item (**keep in mind that this action cannot be undone**). Make sure you also check the checkbox labeled **Also delete the associated file?**

These steps will remove the media item as well as the underlying file that’s associated with it.

**Please note**: If a file has already been indexed by Google or other search engines, it may take a few days for the Google search result for that file to disappear after you delete it from your site.



 

---

 

##  Related resources 

 



  [### Checking for (and managing) broken links on your HarvardSites site

 ](/resource/checking-and-managing-broken-links-your-harvardsites-site)Identify, fix, and prevent broken links on your site.



 

 

   ![AI-generated image showing nodes connected by lines](/sites/g/files/omnuum1651/files/styles/hwp_16_9__480x270/public/2025-10/pexels-googledeepmind-17485658.jpg?itok=uU0i8Pjm) 

 



 

 

   [### Creating a Person Profile in HarvardSites (VIDEO)

 ](/resource/creating-person-profile-harvardsites-video)Understand how person profiles work and how to create one.



 

 

   ![A teacher in a hallway](/sites/g/files/omnuum1651/files/styles/hwp_16_9__480x270/public/2026-07/AdobeStock_722019267.jpeg?itok=Vj7GWEmf) 

 



 

 

   [### Using announcement banners effectively (VIDEO)

 ](/resource/using-announcement-banners-effectively-video)Best practices for creating effective website announcement banners.



 

 

   ![a hand holding a megaphone](/sites/g/files/omnuum1651/files/styles/hwp_16_9__480x270/public/2026-06/AdobeStock_378138203.jpeg?itok=tX7YW0J8) 

 



 

 

   [### Content publishing states in HarvardSites (VIDEO)

 ](/resource/content-publishing-states-harvardsites-video)Understand the differences between saving content as draft, unpublished, or published states.



 

 

   ![a hand moving blocks forming a workflow](/sites/g/files/omnuum1651/files/styles/hwp_16_9__480x270/public/2026-06/AdobeStock_522400980.jpeg?itok=MrUfEFN9) 

 



 

 

   [### Pages vs Lists vs Resources vs News in HarvardSites (VIDEO)

 ](/resource/pages-vs-lists-vs-resources-vs-news-harvardsites-video)Learn when to use pages, lists, resources, or news to display content on your site.



 

 

   ![File folders with papers](/sites/g/files/omnuum1651/files/styles/hwp_16_9__480x270/public/2026-05/pexels-nada-mohamed-3446789-29234185.jpg?itok=sE0QoWAv) 

 



 

 

   [### Citation styles supported in HarvardSites Drupal

 ](/resource/citation-styles-supported-harvardsites-drupal)Review the citation styles available in HarvardSites Drupal that best matches your discipline, department, or publication standards.



 

 

   ![an open book](/sites/g/files/omnuum1651/files/styles/hwp_16_9__480x270/public/2026-05/pexels-pixabay-267582.jpg?itok=0uA1Z_0G) 

 



 

 

   [### How saving works in HarvardSites (VIDEO)

 ](/resource/how-saving-works-harvardsites-video)Understand the way saving your pages and components work in HarvardSites Drupal.



 

 

   ![AI-generated image of a file folder made of glass](/sites/g/files/omnuum1651/files/styles/hwp_16_9__480x270/public/2026-05/AdobeStock_1995028079.jpeg?itok=jqzANj4t) 

 



 

 

   [### Images in HarvardSites Drupal: Getting the results you expect (VIDEO)

 ](/resource/images-harvardsites-drupal-getting-results-you-expect-video)Learn how images are handled differently depending on how and where you use them.



 

 

   ![a person using a phone that has images on its screen](/sites/g/files/omnuum1651/files/styles/hwp_16_9__480x270/public/2026-05/pexels-cottonbro-5082579%20%281%29.jpg?itok=JlHI6Xvr) 

 



 

 

   [### Hero component: Styles, sizes, and best practices (VIDEO)

 ](/resource/hero-component-styles-sizes-and-best-practices-video)Understanding the options available in the Hero component and best practices.



 

 

   ![a tablet computer showing a website](/sites/g/files/omnuum1651/files/styles/hwp_16_9__480x270/public/2026-05/pexels-pixabay-39559.jpg?itok=-VFJXOhB) 

 



 

 

   [### How to navigate and edit nested content (VIDEO)

 ](/resource/how-navigate-and-edit-nested-content-video)How-to video on understanding how content and components are nested on HarvardSites Drupal



 

 

   ![Black squares within bigger squares](/sites/g/files/omnuum1651/files/styles/hwp_16_9__480x270/public/2026-03/pexels-pppsdavid-6727764.jpg?itok=mxCK2clU) 

 



 

 

   [### Sharing audio and video on your site

 ](/resource/sharing-audio-and-video-your-site)Best practices for sharing audio files (like podcasts) and videos.



 

 

   ![a computer screen displaying digital audio waves](/sites/g/files/omnuum1651/files/styles/hwp_16_9__480x270/public/2025-12/pexels-pixabay-257904.jpg?itok=Cp1H1EbL) 

 



 

 

   [### Optimizing your site for search engines and artificial intelligence

 ](/resource/optimizing-your-site-search-engines-and-artificial-intelligence)Learn how to improve your site's content for search engines and AI-generated content.



 

 

   ![Laptop computer with Google search on the screen](/sites/g/files/omnuum1651/files/styles/hwp_16_9__480x270/public/2025-09/pexels-caio-67112.jpg?itok=ieznmSs0)