As you have said you have already set the deletion flag for material with the particular storage location...
Then you have to just set the message as Error
M7127-Material xxxxxx flagged for deletion..
Then try to post GR...
You will not able to post the GR...