SAP Message AY118 - Not possible to mark for deletion (functional location exists)

Diagnosis
It is not possible to mark the asset &V1& sub-number &V2& for deletion,because the asset is linked to a functional location.

System Response
The delete flag is not set.

Procedure
First you have to delete the link to the functional location. Then youcan set the delete flag.