Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8023641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T22:37:10+00:00 2026-06-04T22:37:10+00:00

When I want to delete file in Xcode. Between move to trash and remove

  • 0

When I want to delete file in Xcode. Between “move to trash” and “remove reference” which one should I choose?

I always choose move to trash before cause I thought it will definitely delete the real file. But not sure if that’s right. So what is the difference between them?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T22:37:13+00:00Added an answer on June 4, 2026 at 10:37 pm

    Xcode stores references to the files that make up your project in the project file, namely, the projectName.xcodeproj file. Theoretically your source and resource files that make up your project could be all over your harddisk; of course that’s not a good practice.
    So, when you add an existing file to your project, Xcode asks whether you want to copy it into your project’s folder, which is usually what you should do. So, when you go to delete a file Xcode will ask you whether you only want to remove the reference from your project (and keep the file wherever it lives on your drive) or if you want to remove the file as well.

    Basically if you check “Copy to project” when adding the file, you should chose “Move to Trash” when deleting, otherwise pick “Remove Reference”. This latter option will leave the file in place and just remove the reference to it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When and which event should be used when you want delete a file after
I want to delete one file, e.g. Foo1.aspx, then rename another, Foo2.aspx, as Foo1.aspx.
I want to delete with php (unlink function) file which is out of webroot.
I want to delete a file located on my desktop: os.remove('C:/Benutzer/Me/Desktop/sync.txt') But I get
I've such a situation. I want to delete .wav file which is out of
I want to delete a file using racket. I am using following code. (delete-file
I want to delete a file in assets folder in run-time. I have a
I want to delete a range of data from a text file using PHP.
I want to insert and delete some chars in the middle of a file.
I want to delete a file whose path is stored in a std::string object.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.