Error while deleting INNER JOIN

I am trying to delete an INNER JOIN relationship from a detail table, i had check the syntax of the command from online resources, but when i am using the same syntax with my SQL objects i am getting error as 

Msg 156, Level 15, State 1, Line 15
Incorrect syntax near the keyword 'INNER'.

DML Query:

FROM tablename
INNER JOIN mastertablename
        ON masterfield=detailfield
WHERE <condition>