Deleted deck at anki desktop app

I deleted a deck and I needed it back. How can I get it?

If you have not taken any more actions after deleting it Undoing (Edit->Undo) may bring it back.

Otherwise I recommend restoring from a recent automatic backup (Backups - Anki Manual). You can either overwrite your existing collection completely (this will lose any added cards and review history since the backup was created). Alternatively you can import it into a fresh profile (Profiles - Anki Manual), export the deck (include media and review log), then import the deck into your existing collection.

Thank you! It worked