snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

Bulk deletion of asset Categories, Suppliers, Manufacturers...

Open hmacugova opened this issue 5 years ago • 6 comments

Please confirm you have done the following before posting your bug report:

Describe the bug Hi, I have the same problem as in "Bulk deletion of asset models #3416" but with all another assets: Category, Suppliers, Manufacturers, etc - like in the picture. I cannot delete all assets on one time/click

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Settings'
  2. Click on 'Categories, Manufacturers, Suppliers...'
  3. Scroll down to '....'
  4. See error

Expected behavior I would have there something like "select all and delete all".

Screenshots image image image

Server (please complete the following information):

  • Snipe-IT Version: Version v5.0.5-pre - build 5457 (master)
  • OS: [e.g. Ubuntu, CentOS]: Debian 10 buster
  • Web Server: [e.g. Apache, IIS]: Apache/2.4.38 (Debian)
  • PHP Version: PHP 7.3.19-1~deb10u1

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Error Messages

  • WITH DEBUG TURNED ON, if you're getting an error in your browser, include that error
  • If a stacktrace is provided in the error, include that too.
  • Any errors that appear in your browser's error console.
  • Confirm whether the error is reproducible on the demo: https://snipeitapp.com/demo.
  • Include any additional information you can find in storage/logs and your webserver's logs.
  • Include the output from php -m (this should display what modules you have enabled.)

Additional context

  • Is this a fresh install or an upgrade?
  • What OS and web server you're running Snipe-IT on
  • What method you used to install Snipe-IT (install.sh, manual installation, docker, etc)
  • Include what you've done so far in the installation, and if you got any error messages along the way.
  • Indicate whether or not you've manually edited any data directly in the database

Add any other context about the problem here.

Please do not post an issue without answering the related questions above. If you have opened a different issue and already answered these questions, answer them again, once for every ticket. It will be next to impossible for us to help you.

hmacugova avatar Nov 10 '20 14:11 hmacugova

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

welcome[bot] avatar Nov 10 '20 14:11 welcome[bot]

Apologies for my intervention, but is it intentional for there to not be a bulk deletion feature for Categories, Manufacturers, Suppliers, Locations, and Companies? I am asking this because I imported the data samples provided in this link: https://snipe-it.readme.io/docs/importing

I regret importing those data and would like to delete all of them. However, I am not going to delete them one by one by hand as that would be a hellish tedious task.

I am fairly new to this, so pardon me if I am not aware of any obvious solution to this matter. Thanks.

Snipe-IT Documentation
There is a Web GUI importer available in the Import section that will allow you to upload and process and import a comma-delimited CSV through the web interface. The importer may choke on larger imports, so if you have more than several hundred records to import, you may wish to use the command-line...

BoomCheeseBurge avatar Jun 24 '23 15:06 BoomCheeseBurge

Seconded. Really need this functionality. It is now available for assets but not for other things.

rqi14 avatar Oct 26 '23 08:10 rqi14

Hey, is anyone reading this. I found several requests for this topic. It is impossible to delete hundreds of accessories or anything else for that matter by hand. Yet it would be good to have the option of splitting up accessories from the actual asset overview. I now imported my accessories as assets due to the option not being there in the actual accessories section. It's just a simple checkbox next to the items, it's already implemented in other categories. I'm not a dev, but it can't be that hard?

Bresel1 avatar Nov 02 '23 13:11 Bresel1

Hey, is anyone reading this. I found several requests for this topic.

Then it should have been closed as a duplicate to prevent polluting the request stream.

It is impossible to delete hundreds of accessories or anything else for that matter by hand.

If any of them are actually assigned, it gets a lot more complicated as to how we convey (if we allow the partial delete) what didn't work.

It's just a simple checkbox next to the items, it's already implemented in other categories

The relationships and database structure are are actually pretty different.

I'm not a dev, but it can't be that hard?

We release every two weeks, with thousands of commits a year. If it was easy, it would have been done.

It's logged on our internal task list. It's on thew roadmap, all I can tell you at this point. We're also trying to upgrade the backend framework again, the UI framework (which would have a direct impact on this particular issue) and are trying not to setourselves or users up for failure by going half-cocked on this. We have some harder things to handle before this becomes as easy are you presume it is.

snipe avatar May 26 '25 19:05 snipe

I'm pretty close to being finished with this, just need to write some tests and do some cleanup, should be done with it by Monday morning. (Oh, and I haven't touched the frontend for it yet)

spencerrlongg avatar Jun 12 '25 22:06 spencerrlongg

I ran into a few issues while I was writing tests, so still working on this but am optimistic it'll be done sometime in the next couple of days.

spencerrlongg avatar Jul 14 '25 18:07 spencerrlongg

I've been pulled off of this briefly to look into a more pressing issue, will be back on this as soon that's wrapped up

spencerrlongg avatar Jul 15 '25 15:07 spencerrlongg

@snipe please provide an example of the translated strings being passed to another translated string. Effectively, trans('general.messages, ['type' => trans('general.type'])).

snipe avatar Aug 25 '25 19:08 snipe