Permanently Delete Assets from Project View

How to permanently delete an assets from my project?

I have tried Google, but with no results.

I am looking for a delete similar to Shift-Del in Windows. I have tried Del and Shift-Del in Unity project, but my assets are simply moved to recycle bin. I can empty the deleted assets from my recycle bin, but I hope that I can do a permanent delete straight from project view.

Any thoughts on this one?

Don't know what just happened to half the comments then (including my last one), but just to confirm : sure, I am a big user of Shift+Del, so I totally understand how it can be useful especially for how you want to use it, am following this hoping you can get a clear informed answer. Good Luck =]

–

@alucardj, I was trying my best not to sound offensive, maybe sometimes I will sound a bit tensed-up or not satisfied. But XxJason420xX start to write offensive comments, even claiming that "I am not trying to be friendly, it is a retarded question". then he start accusing me of being obnoxious. I had no choice but to report him and had his answer removed by a moderator, while you converting all these to comments for my question.

–

no problem at all, you were decent in your response. I have actually been going right off in the past few days (hence the me too comment). Still hoping you get an answer =]

–

Last reply also not showing .... No problem at all Chronos-L, you responded tactfully, very restrained after being provoked, well done. I have been going off the past few days myself (is my frustration to 'copy-paste, this doesn't work' people showing?!). Still hoping you get an answer. Edit : Bunny83, you are absolutely Awesome!

–

"I am not trying to be friendly, it is a retarded question" I never said that!! and i deleted my answer it didn't get removed. Pull your head out of your ass..

–

2 Answers

2

You can use this utility window i’ve just written :wink:

The default hotkey is CTRL+E since SHIFT+DEL is already used by Unity and i couldn’t figure out how to specify the delete key as hotkey :wink: (“del” didn’t work. It shows as “DEL” but it does not work. Probably because delete handled in a special way).

Tested only on my Windows PC (WinXP 32Bit). If you use a mac, feel free to post a comment if it works.

Wow. This is great. It is even better than just a straight-forward permanent delete. There is a little warning from a obsolete EditorGUILayout.ObjectField() in line 48. I change it from: var newObject = EditorGUILayout.ObjectField( asset, typeof(UnityEngine.Object), GUILayout.Width(75) ); to: var newObject = EditorGUILayout.ObjectField( asset, typeof(UnityEngine.Object), GUILayout.Width(75) );

–

Ahh, yes :) I didn't check the warnings. However you posted the same line two times ^^ The fix is to insert an "false," after type parameter: var newObject = EditorGUILayout.ObjectField( asset, typeof(UnityEngine.Object), false, GUILayout.Width(75) ); However the whole field isn't really necessary. I.ll fix the linked script...

–

However the whole field isn't really necessary Why is the field not necessary? Mind to do a quick explanation?

–

I think I am going to keep the utility script as it is. I kinda like the way it lists out all the assets I am going to delete.

–

Answer/Announcement/Answer-Counter-Nullifier

When I reported on a inappropriate answer and get it removed from my question, the answer-counter for this question dropped to -1, now I have 1 answer from another user. The counter get back to 0 instead of 1.

This answer/announcement is posted here to set the answer-counter back to 1, so that I can show that this question has 1 answer to it.

Hmm, i thought they fixed this issue a long time ago... Maybe it was a bad combination of converting / deleting the post.

–

It was all simultaneous. Comments were flying from 3 sources, then I converted answer to comment while it was being reported. A real clash of events. My comments are also not appearing under the question now. Thanks for your help, and Chronos-L you did well, kept your cool nicely under onslaught.

–

Ok, i just posted a comment, converted it to an answer and deleted it. Now we have the correct answer count ;) I guess the problem is that a post keeps it's original type. So when posting an answer (+1) but then convert it to a comment (-1) and then delete the comment which is still marked as an answer internally it will decrement once more (-1). I just did the opposite: post a comment, convert to answer (+1) and delete the answer. Since the answer is actually a comment it won't decrement the counter.

–

At least you got your answer in the end haha :)

–

Yes, I did. We should leave this question/issue alone. Let's hope that next time when our path crosses, we will not have another argument like this.

–