Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete layers/files rather than remove #27656

Open
qgib opened this issue Sep 12, 2018 · 4 comments
Open

Delete layers/files rather than remove #27656

qgib opened this issue Sep 12, 2018 · 4 comments

Comments

@qgib
Copy link
Contributor

qgib commented Sep 12, 2018

Author Name: Tom na (Tom na)
Original Redmine Issue: 19832

Redmine category:actions


There are some stackexchange questions about this with some code.

Rather than right clicking and removing layers, can we have the option to Delete them, so you don't have multiple duplicate/not needed files around.

I think this is more useful for commercial users, as it can be hard to determine what is still useful or junk data after the user who created the layers has finished his work.

Stackexchange tickets
[[https://gis.stackexchange.com/questions/190283/deleting-shapefiles-using-qgis]]
[[https://gis.stackexchange.com/questions/215673/deleting-shapefile-with-qgis?noredirect=1&lq=1]]

The stackexchange tickets list how to delete shapefile but the scripts may need be converted in QGIS 3.0 as there has been an API break ect..

@qgib
Copy link
Contributor Author

qgib commented Sep 20, 2018

Author Name: Alessandro Pasotti (@elpaso)


Right-click on a shapefile from the browser and choose "Delete ..." on a shapefile works for me in current master (and 3.x).


  • resolution was changed from to worksforme
  • status_id was changed from Open to Closed

@qgib
Copy link
Contributor Author

qgib commented Oct 1, 2018

Author Name: Tom na (Tom na)


I can't edit the existing ticket, but I was referring to the QGIS Desktop application and not having to use browser or other programs.
I am thinking of making it easier to delete files within a QGIS project whilst you are doing work.
Thank you, sorry for the delay in the update. I should have made it clearer in the ticket


  • status_id was changed from Closed to Reopened

@qgib
Copy link
Contributor Author

qgib commented Oct 1, 2018

Author Name: Alessandro Pasotti (@elpaso)


Tom, when we say "browser" we mean the QGIS internal browser dock widget (usually show in the top left corner of the application and always shown in the data source manager dialog).

Does it work for you?

@qgib
Copy link
Contributor Author

qgib commented Oct 1, 2018

Author Name: Tom na (Tom na)


Alessandro Pasotti wrote:

Tom, when we say "browser" we mean the QGIS internal browser dock widget (usually show in the top left corner of the application and always shown in the data source manager dialog).

Does it work for you?

I see what you mean with browser, that is slightly easier than using file explorer (windows) to find the files after you have removed the layers.
However using QGIS 3.2.2-1 when using browser/browser 2 dock widget, the .cpg and .qpj files are not deleted, (perhaps I should raise that as a bug.)

I was hoping to add an option into Layer dock widget, so remove/and delete, as you still need to navigate to the file in the browser dock widget.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants