Title: Delete wp-config.php
Last modified: January 20, 2025

---

# Delete wp-config.php

 *  [miaoxx](https://wordpress.org/support/users/miaoxx/)
 * (@miaoxx)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/delete-wp-config-php/)
 * Please can anyone one help me to get my WP admin login.
   I mistakenly deletes 
   the (wp-config.Php) file, but I have a copy also have jetPack backup service.
   however can as can not connect to website neither logon as admin, seeking for
   support

Viewing 1 replies (of 1 total)

 *  [Web Design Cheshire](https://wordpress.org/support/users/coderra/)
 * (@coderra)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/delete-wp-config-php/#post-18254434)
 * You need to do the following:
    - Download a fresh copy of WordPress to your desktop and unzip.
    - Open the wp-config.php file in a text editor and edit the database name, username
      and password to the same database name, username and password to what you 
      have in your hosting.
    - If you do not know the database password you can generate a new password in
      yoru hosting. Leave the database user the same.
    - Google ‘WordPress salts’ and you will geta page that gives you some random
      salt strings. Update these in the config file too.
    - Upload the only the config file to your WordPress install this will kick your
      website back in to action.
    - Do not upload a fresh copy of WordPres. Do not upload a fresh wp-content folder–
      both of these could wipe your website.

Viewing 1 replies (of 1 total)

The topic ‘Delete wp-config.php’ is closed to new replies.

## Tags

 * [ftp](https://wordpress.org/support/topic-tag/ftp/)
 * [wordpress Admin Login](https://wordpress.org/support/topic-tag/wordpress-admin-login/)
 * [wp-config.php](https://wordpress.org/support/topic-tag/wp-config-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 4 participants
 * Last reply from: [Web Design Cheshire](https://wordpress.org/support/users/coderra/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/delete-wp-config-php/#post-18254434)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
