A police operation in a Sydney CBD building has ended after detectives did not find anything dangerous during their search.

People were evacuated from the Darlinghurst office on Wednesday afternoon after police received information that sparked the operation.

An investigation into the incident on the corner of Oxford Street and Wentworth Avenue is under way.