Can`t delete imported CSV Files via Web Interface
Expected Behavior (or desired behavior if a feature request)
The file should be deleted and don`t shown anymore.
Actual Behavior
I press on the delete button and nothing happens.
Please confirm you have done the following before posting your bug report:
- [x] I have enabled debug mode
- [x] I have read checked the Common Issues page
Provide answers to these questions:
- Is this a fresh install or an upgrade? - Fresh install.
- Version of Snipe-IT you're running - 5.4.35
- Version of PHP you're running - 7.1.7
- Version of MySQL/MariaDB you're running - Mariadb: 10.1.30
- What OS and web server you're running Snipe-IT on - Windows 2016 Server / Microsoft Web Platform Installer 5.0
- What method you used to install Snipe-IT (install.sh, manual installation, docker, etc) - manual
- WITH DEBUG TURNED ON, if you're getting an error in your browser, include that error - no Error occurs
- What specific Snipe-IT page you're on, and what specific element you're interacting with to trigger the error - https://demo.snipeitapp.com/import / I press on the trash bin symbol.
- If a stacktrace is provided in the error, include that too. - no error occur.
- Any errors that appear in your browser's error console. - no error occur.
- Confirm whether the error is reproducible on the demo: https://snipeitapp.com/demo. - the Error is not reproducible on the demo.
- Include any additional information you can find in
app/storage/logsand your webserver's logs. - No Errors occur in the log. - Include what you've done so far in the installation, and if you got any error messages along the way. - I checked Premissions on the folder and the file under: C:\inetpub\wwwroot\snipe-it\storage\private_uploads\imports. The premission Full control is set for IUSR and IIS_IUSRS. I tried it with different Browser.
- Indicate whether or not you've manually edited any data directly in the database - I did nothing manually with the data in the database.
best regards Baluga
Without an error, there's not going to be much I can do to debug this issue. Check the permissions of your storage directory and subdirectories.
Excuse me for the circumstances, but today i have found the error in the console.
all.js?id=722d1692756a30dc1ece:10 DELETE http://assets.company.com/api/v1/imports/10 405 (Method Not Allowed) (anonymous) @ all.js?id=722d1692756a30dc1ece:10 s @ all.js?id=722d1692756a30dc1ece:9 vt @ all.js?id=722d1692756a30dc1ece:10 F @ all.js?id=722d1692756a30dc1ece:9 l @ all.js?id=722d1692756a30dc1ece:10 u @ all.js?id=722d1692756a30dc1ece:10 ft @ all.js?id=722d1692756a30dc1ece:10 l @ all.js?id=722d1692756a30dc1ece:10 u @ all.js?id=722d1692756a30dc1ece:10 gt @ all.js?id=722d1692756a30dc1ece:10 l @ all.js?id=722d1692756a30dc1ece:10 u @ all.js?id=722d1692756a30dc1ece:10 pt @ all.js?id=722d1692756a30dc1ece:10 l @ all.js?id=722d1692756a30dc1ece:10 u @ all.js?id=722d1692756a30dc1ece:10 ht @ all.js?id=722d1692756a30dc1ece:9 l @ all.js?id=722d1692756a30dc1ece:10 u @ all.js?id=722d1692756a30dc1ece:10 ct @ all.js?id=722d1692756a30dc1ece:9 l @ all.js?id=722d1692756a30dc1ece:10 u @ all.js?id=722d1692756a30dc1ece:10 mt @ all.js?id=722d1692756a30dc1ece:10 l @ all.js?id=722d1692756a30dc1ece:10 u @ all.js?id=722d1692756a30dc1ece:10 ut @ all.js?id=722d1692756a30dc1ece:9 l @ all.js?id=722d1692756a30dc1ece:10 u @ all.js?id=722d1692756a30dc1ece:10 (anonymous) @ all.js?id=722d1692756a30dc1ece:10 l @ all.js?id=722d1692756a30dc1ece:10 (anonymous) @ all.js?id=722d1692756a30dc1ece:10 s @ all.js?id=722d1692756a30dc1ece:9 e @ all.js?id=722d1692756a30dc1ece:10 z @ all.js?id=722d1692756a30dc1ece:9 z.(anonymous function) @ all.js?id=722d1692756a30dc1ece:10 deleteFile @ all.js?id=722d1692756a30dc1ece:21 i @ all.js?id=722d1692756a30dc1ece:4 click @ VM133:2 e @ all.js?id=722d1692756a30dc1ece:5
best regards Baluga
I need the error log from the app, not the error log from the browser.
When I press on the bin symbol nothing happens. No error occur, neither in the console or in my Logs. My debugbar folder is full with .json files. In my eyes i can exclude a premission problem on the folder.

I too have this same issue.
Nothing appears in snipe-it/storage in the laravel logs. It is like an error didn't even happen.
The fact that the red error box in the GUI is also blank supports the claim that there is nothing being logged.
@j-ogas do those files actually exist in your file system?
@snipe Good point. No, the .csv files no longer exist in the directory they were uploaded from.
I was experimenting with the Import function in my test environment and would delete/rename the .csv file after modifying it (for science).
This test environment is using Snipe-IT v4.1.8, MariaDB 10.0.14, PHP 5.6.x
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!
can we delete the import files that already been used to avoid unnecessary import? @snipe
@markwizer i think it`s not a Snipe-it problem. Its a long time ago but i solved the problem in the IIS Manager on the Asset Server. Did you configure SSL correctly ? Go in the IIS Manager -> on your Server -> Sites -> Snipe IT -> SSL Settings .
is that the only way @Baluga145
is the delete button there for display purposes? @snipe because it can't delete even if the file is freshly imported
@markwizer yes, we’re in the habit of putting buttons in our UI just for decoration. That seems like a good investment of our time. 🙄
If you’re having a problem, open a new issue with specifics about what you’re seeing, with all of the info we ask for in new issues. This issue is old and we’ve released several versions since then.
It might be a bug, it might not be, but sarcastic accusations aren’t going to get your issue solved any faster.
okay @snipe thanks
Can I re-open this issue, I have exactly the same problem.
PHP is 7.1.33, with the latest Snipe-It 4.9.2
I'm also using IIS in Windows Server 2008 R2. I already allowed DELETE for PHP FastCGI module handler, but it still report 405 error when I click the delete button
There is no SSL for the website, just HTTP
I found the solution myself, I found that the IIS WebDAV module conflict with Snipe-IT. I end-up follow this page's suggestion (https://stackoverflow.com/questions/4413455/why-does-http-delete-verb-return-405-error-method-not-allowed-for-my-restful-w) to remove the WebDAV handler and WebDAV module at the Snipe-IT WebSite and then I can finally delete the import files
Stack OverflowCan anyone shed any light on this? I feel like I have wasted the entire day today hunting and searching the internet for any scrap of information about how to do this. I have created a very simpl...
